Objective : Resolution to this error, with IIS 7 and 8 server. |
To use a json file in your local server, json extension should
be recognized as a static file. In this example I used a desktop with
Windows 8 Home Premium (64 bit) for this example.
Now Open IIS manager using windows /search option On the MIME configuration pane, find "Add" menu under Actions column and then add "json extension as shown below. Add "json" extension to MIME type in IIS 7and * manager. Now note the extension was added in the list of MIME type. |
Now you are ready to use file with json extension
|