By default, IIS does not support parsing. json files, which requires our own configuration under IIS
Method One: IIS configuration
1. Click on the Start menu to select Control Panel;
2. In the Control Panel, click Administration Tools, select Internet Information Services (IIS) Manager
.
.
3. Click MIME type
4. Click "Add ..." in the action.
File extension:. json
MIME type: Application/json
.
.
Click on "Handler Mappings"
In action Select "Add script Map"
The request path is: *.json,
Executable file: C:\WINDOWS\system32\inetsrv\asp.dll
Name: JSON
When the above operation is complete, restart IIS (http://jingyan.baidu.com/album/1974b28983fdb1f4b0f7747f.html?picindex=7)
(Note: cannot be added repeatedly, otherwise access has a configuration error: When the unique key property "FileExtension" is set to ". LRC", duplicate collection items of type "MimeMap" cannot be added.) of the problem)
Method Two: Configuration in Web. config (first removed and then added)
IIS Config JS supports reading JSON file configuration