This is a migrated thread and some comments may be shown as answers.

Does not handle exceptions

1 Answer 66 Views
Diagnostics
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mark
Top achievements
Rank 1
mark asked on 09 May 2012, 06:24 PM
I RTFM but I still don't get any display of the exception. 

I made these changes to my App.xaml.cs

App.ctor()
1. Initialize diagnostics at the very end
2. Add handler for ExceptionOccurred
App.Launching()
1. ApplicationUsageHelper.Init("1.0")

NOTE: I am not using RadPhoneApplicationFrame as my root Frame. IS this required? I tried doing that but it still doesn't catch exceptions!

The exceptions I am trying to handle a Web Service exceptions. Basically I turned off my service just to see the errors come. ^_^ but it doesn't trap them. i.e. EndpointNotFoundException...

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 11 May 2012, 07:55 AM
Hello Mark,

Thank you for contacting us.

In order to display the notification that an exception has occurred you don't even need a handler for the ExceptionOccurred event. You just need to initialize the ApplicationUsageHelper class and an instance of the Diagnostics component. I have attached a sample application to show you the expected behavior. In this application, an exception is thrown when the MainPage is loaded to illustrate the message displayed by RadDiagnostics.

Please note that if you start the application without debugging you will immediately see the message and if you start debugging, VisualStudio will notify you first that an exception has occurred and if you continue debugging (F5), you will eventually see the message in the application as well.

I hope this helps. Let me know if you still don't see the message of the exception.

All the best,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Diagnostics
Asked by
mark
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or