To add a MIME map for a site in IIS

Source: Internet
Author: User

In the IIS (Express) By default does not support the JSON format data, the data always can not load, later looked up only then to know is the MIME mapping question, therefore needs in the site root directory new or modifies the Web.config file resolution, adds or modifies the <system.webServer> node, the method is as follows:

<?xml version= "1.0"?><Configuration>  <System.web>  <Compilationdebug="False"targetframework="4.0"/> </System.web> <!--add MIME mappings for sites in IIS (Express)--> <system.webserver>  < staticcontent>   <mimemap fileextension= ". JSON "mimetype=" Application/x-javascript "/>  </staticcontent> </system.webserver></ configuration> 

Fuck, waste me one hours, record.
/span>

To add a MIME mapping for a site in IIS

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.