Select to view content in your preferred language

Error: Layer not found: -1

863
2
02-15-2013 07:37 AM
LakshmananVenkatesan
Frequent Contributor
We are using ESRI SL 2.4 API- and our application has one dynamic service and one feature layer. Only few of the users getting below error, not sure whether this is issue with Microsoft sliver light version. Any quick help on this.

Error: Layer not found: -1

at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e) at ESRI.ArcGIS.Client.Layer.Initialize() at ESRI.ArcGIS.Client.FeatureLayer.info_Error(Object sender, TaskFailedEventArgs e) at ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo.OnError(Exception err) at ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo.Execute_Completed(Object sender, DownloadStringCompletedEventArgs e) at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e) at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
If this error seems random, it might be a temporarly network issue or a server time out.
To avoid the exception, you can wire up an Handler to the event Layer.InitializationFailed and log or display the error in the handler.
0 Kudos
LakshmananVenkatesan
Frequent Contributor
Broux - Thank you. I dont see this timeout issue, this just simple feature layer with 700 polygons. This error is random, as you said I will handle this error, but would like to find the reason for the issue.
0 Kudos