【问题标题】:RuntimeLocalServer.exe when debugging?调试时RuntimeLocalServer.exe?
【发布时间】: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 的副本,但不知何故我认为我不应该手动复制它。

帮助?

【问题讨论】:

    标签: .net arcgis esri


    【解决方案1】:

    事实证明这很简单。

    ArcGIS 运行时将 Deployment.arcgisruntimemanifest 文件放入项目中。如果您打开它,您将进入一个清单编辑器,允许您选择“本地服务器”作为要部署的包之一。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-22
      • 1970-01-01
      • 2019-04-04
      • 2015-10-11
      • 2011-04-16
      • 2010-10-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多