【发布时间】:2016-10-22 06:51:47
【问题描述】:
我只是想开始使用 ESRI 的 .NET 的 ArcGIS 运行时。
我有一个运行良好的简单 hello-world 应用程序,将切片包加载到 ArcGISLocalTiledLayer:
<esri:MapView x:Name="MyMapView">
<esri:Map x:Name="MyMap">
<esri:ArcGISLocalTiledLayer ID="BaseMap" />
</esri:Map>
</esri:MapView>
var basemapLayer = this.MyMap.Layers["BaseMap"] as ArcGISLocalTiledLayer;
basemapLayer.Path = @"E:\EsriMaps\MapPackages\MyMapData.tpk";
但是当我尝试将其更改为使用地图包时:
<esri:MapView x:Name="MyMapView">
<esri:Map x:Name="MyMap">
<esri:ArcGISDynamicMapServiceLayer ID="BaseMap" />
</esri:Map>
</esri:MapView>
var localMapService = new LocalMapService(@"E:\EsriMaps\MapPackages\MyMapData.mpk");
await localMapService.StartAsync();
var basemapLayer = this.MyMap.Layers["BaseMap"] as ArcGISDynamicMapServiceLayer;
basemapLayer.ServiceUri = localMapService.UrlMapService;
我得到一个例外:
_HResult=-2147024894
_message=LocalServer start failed: executable not found.
HResult=-2147024894
IsTransient=false
Message=LocalServer start failed: executable not found.
Source=Esri.ArcGISRuntime
FileName=E:\dev\experiments\ESRI\HelloWorldMap\HelloWorldMap\bin\Debug\arcgisruntime10.2.7\localserver32\bin\RuntimeLocalServer.exe
我的 bin\Debug 文件夹中有一个 arcgisruntime10.2.7,但其中没有 localserver32 文件夹。有什么想法为什么不呢?
在我的 C:\Program Files (x86)\ArcGIS\Desktop10.4\bin 中有一个 RuntimeLocalServer.exe 的副本,但不知何故我认为我不应该手动复制它。
帮助?
【问题讨论】: