日期:2014-05-20  浏览次数:20940 次

flex中地图不显示
最近用ArcGIS和Flex遇到些问题,希望各位大虾指点一二。问题如下:
Error: E0005E: Invalid tile service: http://ewa99/ArcGIS/rest/services/Geometry/MapServer
at <anonymous>()[C:\checkout\flex_api\api\src\com\esri\ags\layers\ArcGISTiledMapServiceLayer.as:483]
at mx.rpc::AsyncResponder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncResponder.as:84]
at com.esri.ags.tasks::MapServiceInfoTask/handleDecodedObject()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\MapServiceInfoTask.as:85]
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.esri.ags.tasks::BaseTask/handleResult()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\BaseTask.as:462]
at <anonymous>()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\BaseTask.as:399]
at mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41]
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:197]
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\events\ResultEvent.as:159]
at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:270]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
at mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41]
at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
地图路径是:http://localhost/ArcGIS/rest/services/Geometry/MapServer
地图是发布在.NET下的,用IE能直接看见地图,但是在Flex程序下不显示。




------解决方案--------------------
http://localhost/ArcGIS/rest/services/Geometry/MapServer能访问吗?
把缓存清一下呢(Clear Cache)?

附清理方法:
我用的是Java+Flex API 1.3,路径是http://localhost:8399/arcgis/rest/admin/,.Net应该是http://localhost/arcgis/rest/admin/,用agsadmin组的用户名应该是可以登陆的,一进去最上面有个“Clear Cache Now”点一下试试
------解决方案--------------------
清完了记得重新切片再试