没有为扩展名“.html”注册的生成提供程序 .
2012-01-12 14:03
295 查看
在初次使用vs2008的时候,把原来的html重写规则原版不动的转过来。但是出现了如下的错误提示:
使用url重写后后台编辑器报以下错误:
<compilation debug="true">
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".xml" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<!--这里加入urlRewriter.dll要处理的后缀文件-->
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
<add verb="*" path="*.xml" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
使用url重写后后台编辑器报以下错误:
没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性。
在google之后,无意中发现一片文章,根据文章我重新改动配置。现在使用如下的配置,就正常使用了。把那些需要重写的和不需要重写的真正的html文件都会访问到。<compilation debug="true">
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".xml" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<!--这里加入urlRewriter.dll要处理的后缀文件-->
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
<add verb="*" path="*.xml" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
相关文章推荐
- 没有为扩展名“.html”注册的生成提供程序 (解决办法)
- 没有为扩展名“.html”注册的生成提供程序
- [转]没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序。.net urlwrite 重写 伪静态 IIs 配置
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序。.net urlwrite 重写 伪静态 IIs 配置
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名.htm注册的生成提供程序,没有为扩展名.html注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名.htm注册的生成提供程序,没有为扩展名.html注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 没有为扩展名“.html”注册的生成提供程序
- 错误:没有为扩展名“.html”注册的生成提供程序。