<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="没有为扩展名“.html”注册的生成提供程序" id="card1">
<p> 游客</p><p>
标题:没有为扩展名“.html”注册的生成提供程序<br/>
正文:<br/>
在初次使用vs2008的时候，把原来的html重写规则原版不动的转过来。但是出现了如下的错误提示：没有为扩展名&amp;ldquo;.html&amp;rdquo;注册的生成提供程序。可以在 machine.config 或 web.config 中的 &amp;lt;compilation&amp;gt;&amp;lt;buildProviders&amp;gt; 节注册一个。请确保所注册的提供程序具有包含值&amp;ldquo;Web&amp;rdquo;或&amp;ldquo;All&amp;rdquo;的 BuildProviderAppliesToAttribute 属性。 在google之后，无意中发现一片文章，根据文章我重新改动配置。现在使用如下的配置，就正常使用了。把那些需要重写的和不需要重写的真正的html文件都会访问到。&amp;lt;buildProviders&amp;gt;        &amp;lt;add extension=&quot;.html&quot; type=&quot;System.Web.Compilation.PageBuildProvider&quot; /&amp;gt;    &amp;lt;add extension=&quot;.xml&quot; type=&quot;System.Web.Compilation.PageBuildProvider&quot; /&amp;gt;   &amp;lt;/buildProviders&amp;gt;&amp;lt;httpHandlers&amp;gt;    &amp;lt;!--这里加入urlRewriter.dll要处理的后缀文件--&amp;gt;    &amp;lt;add verb=&quot;*&quot; path=&quot;*.html&quot; type=&quot;URLRewriter.RewriterFactoryHandler, URLRewriter&quot;/&amp;gt;    &amp;lt;add verb=&quot;*&quot; path=&quot;*.xml&quot; type=&quot;URLRewriter.RewriterFactoryHandler, URLR<br/><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=505&amp;Page=1">[&lt;&lt;]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=505&amp;Page=1">[[1]]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=505&amp;Page=2">[2]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=505&amp;Page=2">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=505">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=505">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://camnpr.com/wap.asp">首页</a>
</p>
</card>
</wml>