我有点困惑为什么我一直在我的错误日志中得到这些错误消息:
The controller for path '/fonts/fontawesome/fontawesome-webfont.woff' was not found or does not implement IController.和
The controller for path '/css/bootstrap.css.map' was not found or does not implement IController.我每分钟得到大约4次点击,所以它很快就填满了我的错误日志。
发布于 2017-08-10 03:21:23
我发现在浏览器端返回404的woff文件也有类似的问题,您只需在Web.config中将这些文件标识为静态内容
<system.webServer>
<staticContent>
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
<mimeMap fileExtension="woff2" mimeType="application/font-woff" />
<mimeMap fileExtension="map" mimeType="application/json" />
</staticContent>
</system.webServer>https://stackoverflow.com/questions/45598325
复制相似问题