Example #1
0
 private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
 {
     try
     {
         string str = (e.get_ExceptionObject().Message + e.get_ExceptionObject().StackTrace).Replace('"', '\'').Replace("\r\n", @"\n");
         HtmlPage.get_Window().Eval("throw new Error(\"Unhandled Error in Silverlight Application " + str + "\");");
     }
     catch (Exception)
     {
     }
 }