IIS supports JSON, Geojson files

Source: Internet
Author: User
Tags iis administration

Recently engaged in ASP. Net + openlayers. Where Openlayer has a data source that supports. Geojson data, but how the test is not successful. The same data can be displayed successfully under PHP.

Rub.

Aimless search on the Web, ASP. Geojson,aspx+geojson, Javascript+geojson .....

Finally, I finally searched for a keyword like iis+json/geojson.

Http://coastalrocket.blogspot.kr/2013/01/allowing-jsongeojson-in-iis7.html

Simply put. Geojson an extension file such as IIS does not know and needs to be added to process the mapping.

Open IIS Administration
Select the MIME type,

then click Add.

File extension:. geojson

MIME Type: Application/geojson

Are you sure.

Click website
Select Handler Mappings


Click Add Script Map


Request Path: *.geojson
Executable:c:\windows\system32\inetsrv\asp.dll
Name:geojson

This should be the case if it is a JSON extension or an extension that is not supported by IIS.

Note: If you are prompted Asp.dll to add a script map, you cannot find a similar error stating that the IIS installation is incomplete.

Please refer to this article.

Full installation of the IIS service

IIS supports JSON, Geojson 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.