ASP.NET MVC请求特殊静态文件返回404 Not Found

今天在请求静态的json档案以及woff2档案,会返回404错误,需要在Web.Config里修改:

  <system.webServer>
<modules>
<remove name="FormsAuthentication" />
</modules>
<handlers>
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
</system.webServer>
上一篇:【deep learning学习笔记】Recommending music on Spotify with deep learning


下一篇:【原创】数据挖掘案例——ReliefF和K-means算法的医学应用