Get IIS6 to serve JSON files (inc. POST,GET)?
By default, IIS in W2K3 and above won't serve files that aren't of a MIME type that it knows about (instead returning 404 errors).
You need to add a MIME type to IIS to allow it to serve that type of file. You can set it at the site level or at the server level.
To set this for the entire server:
- Open the properties for the server in IIS Manager and click MIME Types
- Click "New". Enter "JSON" for the extension and "application/json" for the MIME type.
Update
Given this post is found in the Sencha "getting started guide", I thought it's worth upgrading the steps.
On Win 7 Enterprise SP 1 with 64-bit The IIS has a different outlook. So the steps:
*. Open IIS Manager. Then you get following window.
*. Right click on MIME and choose open feature
*. Click on ADD from top right corner Actions menu
*. Rest is as per Evan's.
Make sure you have Active Server Pages Allowed in the Web Service Extensions section of your IIS configuration.
IIS Manager -> (local computer) -> Web Service Extensions -> Active Server Pages