Json file not found while running asp.net project

While running asp.net application you might jet bellow error while getting json file.

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.

This is because MIME type “json” is not mapped.
To solve this error we need to add bellow config in web.config

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

This should resolve error.

admin

  • Yuvraj ingale

    Thanks a Lot..It Help Me lot