We have a problem downloading .json files through IIS7.5.
The MIME type is set correctly:
<mimeMap fileExtension=".json " mimeType="application/json" />
But still it gives an error: "HTTP Error 404.3 - Not Found."
To make it work, we need to add a handler mapping:
<handlers>
<add name="JSON" path="*.json" verb="*" modules="IsapiModule" scriptProcessor="C:\WINDOWS\system32\inetsrv\asp.dll" resourceType="Unspecified" />
</handlers>
Why json files cannot be processed by StaticFileHandler, like other static content? It seems strange, we need to install classic asp support for processing json files.
source
share