<system.web>
<httpHandlers>
<!--.html文件不是重写的html文件-->
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" validate="true"/>
<!--Url重写后的html文件-->
<add verb="*.html" path="*.html" type="你的Url重写规则或方法" />
</httpHandlers>
<compilation debug="false" >
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
</system.web>