laptop and a wrench

Error

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

Última publicación: August 25, 2014 ArcGIS Runtime SDK
Número de ID del error NIM077609
EnviadoJanuary 27, 2012
Última modificaciónJune 5, 2024
Relacionado conArcGIS Runtime SDK
Versión encontrada10.1 Beta 1
Lenguaje del programaC#
Sistema operativoWindows OS
Versión de sistema operativo7 64 Bit
Versión corregida10.1
EstadoFixed

Solución alternativa

//********************* 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); }); //********************************************************************** //**********************************************************************

Pasos para reproducir

ID del error: NIM077609

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga