Serving JSON on IIS6
I ran into a situation where I needed to download JSON from IIS 6.0. But it wouldn’t work. I kept getting this error message.
HTTP Error 404 - File or directory not found.
The cause is that IIS6 hadn’t been configured to allow JSON downloads. You can fix it using this link. Add the following to the MIME types.
Extension: .json
MIME type: application/json
But sometimes even this doesn’t work. That’s because the changed setting hasn’t been applied to IIS yet. Open CMD and type this.
iisreset
Now it works!
Leave a comment