服务器环境是windows 2003 IIS6
在web.config文件中加入
1、在<compilation debug="true"> 节点加入
<buildProviders>
<add extension=".htm" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
2、在 <httpHandlers> 节点加入
<add verb="GET,POST" path="*.htm" type="System.Web.UI.PageHandlerFactory" validate="false"/>
这样修改后真实的.HTM页面是能显示了