<compilation debug="true">
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/>
</httpHandlers>
解决了 web.config 里加这几句就ok了
转载于:https://www.cnblogs.com/vipsoft/archive/2013/05/20/3089872.html