laptop and a wrench

Bug

Specifying the enableDynamicLayers argument of LocalMapService.GetServiceAsync() causes exception of type 'System.StackOverflowException'.

Last Published: August 25, 2014 ArcGIS Runtime SDK
Bug ID Number NIM077609
SubmittedJanuary 27, 2012
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found10.1 Beta 1
Program languageC#
Operating SystemWindows OS
Operating System Version7 64 Bit
Version Fixed10.1
StatusFixed

Workaround

//********************* Try below code instead ************************* //********************************************************************** LocalMapService localMapService = new LocalMapService() { Path = @"...\Debug\DE_PLZ_5.mpk", MaxRecords = 9000, EnableDynamicLayers = true }; localMapService.StartAsync(delegateLocalService => { ArcGISLocalDynamicMapServiceLayer _arcGISLocalDynamicMapServiceLayer = new ArcGISLocalDynamicMapServiceLayer() { Service = localMapService, ID = "_arcGISLocalDynamicMapServiceLayer" }; _mapControl.Layers.Add(_arcGISLocalDynamicMapServiceLayer); }); //********************************************************************** //**********************************************************************

Steps to Reproduce

Bug ID: NIM077609

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options