Does not handle exceptions

Thread is closed for posting
2 posts, 0 answers
  1. mark
    mark avatar
    6 posts
    Member since:
    Jul 2011

    Posted 09 May 2012 Link to this post

    I RTFM but I still don't get any display of the exception. 

    I made these changes to my App.xaml.cs

    1. Initialize diagnostics at the very end
    2. Add handler for ExceptionOccurred
    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...
  2. Todor
    Todor avatar
    798 posts

    Posted 11 May 2012 Link to this post

    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,
    the Telerik team

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

Back to Top