IIS Config JS supports reading JSON file configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.