Windows Store 8.1 sending UnhandledExceptionEventArgs not supported
Sparkiy
Posted on
Jan 13 2015
Application is Windows 8.1 Universal Application (code is for Windows)
private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) {
this.raygunClient.Send(e);
}
I'm getting:
sparkiy-client\SparkiyClient\SparkiyClient\SparkiyClient.Shared\App.xaml.cs(98,27,98,28):
error CS1503: Argument 1: cannot convert from 'Windows.UI.Xaml.UnhandledExceptionEventArgs' to 'System.Exception'
Sparkiy
Posted on
Jan 13 2015
Ok, I just found in documentation that I can use .Attach instead of manually calling Send.
** EDIT:
Me, the idiot, blindly following instructions without actually understanding what lines do, I just needed to add .Exception
to the args param and send that.
Jason Fauchelle
Raygun
Posted on
Jan 13 2015
Hi Sparkiy,
Great to hear you found the solution. Let us know any time you have further questions about Raygun.
-Jason Fauchelle
Sparkiy
Posted on
Jan 13 2015
It seems that my application isn't reporting exceptions. I have tried placing exception on many places, debugging app in Debug/Release, start w/o debugging - still nothing appears on App overview.
Here is my code: https://github.com/Sparkiy/sparkiy-client/blob/edge/SparkiyClient/SparkiyClient/SparkiyClient.Shared/App.xaml.cs
Jason Fauchelle
Raygun
Posted on
Jan 13 2015
Hi Sparkiy,
Your code looks all correct. Could you please try set a breakpoint in your OnUnhandledException method and see if it ever gets hit? (try in both Release and Debug mode). If it does get hit, do you see any errors mentioned in the output window related to Raygun?
-Jason Fauchelle
Sparkiy
Posted on
Jan 13 2015
I have tested that too. It does get hit and there is no error. Here is Debug output: http://pastebin.com/UGDtZLY6
Sparkiy
Posted on
Jan 13 2015
Ok, It was my fault. I disabled Internet access in package manifest so that I don't have to write privacy policy for windows store certification. Well I guess I'll have to write one now :D
Everything is working properly. Thanks!
Jason Fauchelle
Raygun
Posted on
Jan 14 2015
Hi Sparkiy,
Great to hear everything is working as it should now. Let us know if you ever have further questions.
-Jason Fauchelle