HTTP错误404.3 - 在asp DotNet中找不到 [英] HTTP Error 404.3 - Not Found in asp DotNet
本文介绍了HTTP错误404.3 - 在asp DotNet中找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用dotnet应用程序的ajax请求json文件时出现此错误:
HTTP错误404.3 - 未找到
由于扩展配置,无法提供您请求的页面。如果页面是脚本,请添加处理程序。如果要下载文件,请添加MIME地图。
请分享解决方案
解决方案
实施下面的web.config文件中的代码
< system.webserver>
< staticcontent>
< remove fileextension = 。json />
< mimemap fileextension = 。json mimetype = application / json />
< / staticcontent >
< / system.webserver > 跨度>
When I am requesting the json file using ajax from dotnet application I got this error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Please share the solution
解决方案
Implement below code in web.config file
<system.webserver> <staticcontent> <remove fileextension=".json" /> <mimemap fileextension=".json" mimetype="application/json" /> </staticcontent> </system.webserver>
这篇关于HTTP错误404.3 - 在asp DotNet中找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文