在Web.config中设置httpHandlers 请求静态资源可以访问
1 <httpHandlers> 2 <add verb="GET,HEAD,POST" path="*.html" type="System.Web.StaticFileHandler"/> 3 <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/> 4 </httpHandlers>
在Web.config中设置httpHandlers 请求静态资源可以访问
1 <httpHandlers> 2 <add verb="GET,HEAD,POST" path="*.html" type="System.Web.StaticFileHandler"/> 3 <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/> 4 </httpHandlers>
转载于:https://www.cnblogs.com/BitchFace/p/6247443.html