在View下的web.config文件中修改HttpHandlers节点

<httpHandlers>
      <!--增加相应的处理(如下可以访问.html页面)-->
      <add verb="GET,HEAD" path="*.html" type="System.Web.StaticFileHandler"/>
      <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>

相关文章: