简体   繁体   中英

HTTP Error 404.3 - Not Found in DotNet

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. Use the file extension that you want to fetch
 For Example: here is .json file

 <system.webServer>

 <staticContent>
    <remove fileExtension=".json" />
    <mimeMap fileExtension=".json" mimeType="application/json" />
  </staticContent>

 </system.webServer>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM