没有为扩展名“.html”注册的生成提供程序

没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性

在重写目录之后发现真实的html显示不出来了

只有按照有求做了

节注册一个

 

     <compilation debug="true" >
        <buildProviders>
          <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
        </buildProviders>

      </compilation>

这样发现真实的html文件就可以使用了

 

原文地址:https://www.cnblogs.com/bestsaler/p/1835628.html