VS2013 using AJAX to access JSON files--vs2013 configuration webconfig identify JSON files

Source: Internet
Author: User

These two days with the VS2013 development tool to access the JSON file, always reported 404 files, I based on the internet to set up IIS add MIME restart IIS and VS2013 or failed to access the JSON file, but it is strange to access the TXT file

A number of methods were queried, and the way in which the Web. config was modified in VS2013 worked, and I hereby record:

  <system.webServer>    <staticContent>      <mimemap fileextension=". JSON" mimetype="application/json"/>    </staticContent>  </ System.webserver>

Add the code above, as shown in this image:

In this way, my problem is solved.

VS2013 using AJAX to access JSON files--vs2013 configuration webconfig identify JSON files

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.