I am trying to load a local map package to the main window using ArcGIS Runtime .Net for WPF (Version 100.1). But somehow the local server cannot find layers in the map package. Here's my script: public MainWindow()
{
InitializeComponent();
StartLocalServer();
}
private Esri.ArcGISRuntime.LocalServices.LocalServer _localServer;
private async void StartLocalServer()
{
_localServer = Esri.ArcGISRuntime.LocalServices.LocalServer.Instance;
await _localServer.StartAsync();
var mapService = new Esri.ArcGISRuntime.LocalServices.LocalMapService(@"C:\mappackage.mpk");
await mapService.StartAsync();
var mapServiceUrl = mapService.Url;
} I checked the generated url of the local service and not a single layer in that map package was found. See the screenshot here: The map package was created in ArcMap 10.5.1 with Runtime support enabled. It contains point layer, polyline layer, and polygon layer. I am using Visual Studio 2012 in Windows 7 SP1. Any help would be appreciated! Thank you!
... View more