首页 > Web开发 > 详细

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

时间:2017-03-01 17:54:59      阅读:1269      评论:0      收藏:0      [点我收藏+]
  • 运行《WebGIS之OpenLayers全面解析》中的示例程序时,无法加载*.json文件。

查看到提示如下错误: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

  • 无法加载kml文件

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

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!