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