GET http://localhost:11232/demos/data/geolocation-orientation.json 404 (NOT FOUND)

时间:2017-03-01 17:54:59   收藏:0   阅读:1269

查看到提示如下错误:GET http://localhost:11232/demos/data/geolocation-orientation.json 404 (NOT FOUND)

原因:

IIS服务器设置问题

1.Open IIS Manager

2.Display properties for the IIS Server

3.Click MIME Types and then add the JSON extension:

File name extension: .json

MIME type: application/json

4.Go back to the properties for IIS Server

5.Click on Handler Mappings

Add a script map

Request path: *.json

Executable: C:\WINDOWS\system32\inetsrv\asp.dll Name: JSON

参考网址:

http://stackoverflow.com/questions/15944311/error-404-3-not-found-for-json-file

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:11232/demos/data/kml/2012_Earthquakes_Mag5.kml

在IIS中添加:KML 文件的 MIME 类型application/vnd.google-earth.kml+xml

 

原文:http://www.cnblogs.com/KevinJasmine/p/6485353.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!