private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { if (e.Handled || ESRI.ArcGIS.Mapping.Core.AsyncExtensions.DownloadStringTaskInProgress) { return; } Logger.Instance.LogError(e.ExceptionObject); if (e.ExceptionObject != null && e.ExceptionObject.StackTrace != null && e.ExceptionObject.StackTrace.Contains("ESRI.ArcGIS.Client.WebMap.MapConfiguration")) { // if loading a webmap caused the problem kill the loading indicator if (BuilderApplication.Instance.MapCenter != null && BuilderApplication.Instance.MapCenter.LoadingMapIndicator != null) { BuilderApplication.Instance.MapCenter.LoadingMapIndicator.Visibility = Visibility.Collapsed; } } e.Handled = true; ReportErrorToUser(e, LayerErrorHandler.HandleIfLayerError(e.ExceptionObject)); }
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { ESRI.ArcGIS.Mapping.Controls.Logger.Instance.LogError(e.ExceptionObject); LayerErrorHandler.HandleIfLayerError(e.ExceptionObject); e.Handled = true; }