.net MVC中请求访问json文件,报404的错误解决方法如下:
在在Web.config里面的system.webServer添加如下内容:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
</staticContent>
</system.webServer>
.net MVC中请求访问json文件,报404的错误解决方法如下:
在在Web.config里面的system.webServer添加如下内容:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
</staticContent>
</system.webServer>