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

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

相关文章:

  • 2021-05-23
  • 2021-10-08
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-10-26
  • 2022-01-26
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-11-09
  • 2021-09-13
相关资源
相似解决方案