vasmel

Unhandled exception in Google Chrome

Discussion created by vasmel on Nov 9, 2010
Latest reply on Sep 22, 2011 by mbonness
Hello,

After FeatureLayer receives invalid response from server exception in thrown:
System.InvalidOperationException: Failed to InvokeSelf.
   at System.Windows.Browser.ScriptObject.InvokeSelf(Object[] args)
   at ESRI.ArcGIS.Client.Log.WriteLog(String message)
   at ESRI.ArcGIS.Client.Log.Write(String message, Exception exception)
   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.FromJson(String json)
   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)


This only happens in Google Chrome. I can handle this exception in Application.UnhandledException but FeatureLayer.InitializationFailed event is not rising.


Does anyone know how to disable or configure this logging (ESRI.ArcGIS.Client.Log)? (it is internal class)

Outcomes