解决 asp.net 伪静态 IIS设置后 直正HTML无法显示的问题

第一步:打开Web.config配置文件

第二步:设置如下节点

<compilation debug="false">  

    <buildProviders>  

    <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />  

    </buildProviders>  

</compilation>  

然后继续设置如下节点

<httpHandlers>  

      <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>  

</httpHandlers> 

转自:http://www.cnblogs.com/leonsky/archive/2011/05/31/2064317.html

你可能感兴趣的:(asp.net)