0
votes

I added a background task to my Windows Phone 8.1 app. And it works as expected, but only in Debug mode. I always get the RootFrame_NavigationFailed exception when I run my application in Release mode.

How can I debug it in Release to know the reason of the RootFrame_NavigationFailed?

The app doesn't have any information in exception in Release mode.

1
What kind of background tasks are you using? Where/when exactly do you get the error?Romasz
Windows Runtime Component (.winmd). When I run my app.Mark Twain
How your BTask is triggered (TimeTrigger, Maintance)? Or it's BackgroundAudio task? How it's connected with your App? Have you tried to debug Suspending event?Romasz
It's the timer background task which I referenced to my app. I can't use debug events, because I've got exception instantly after my app run.Mark Twain
But you have said that it works in Debug mode. If you remove BTask from the code - does the app work fine? Are you able to say what lines cause the problem? Or maybe you are able to share a project with the problem?Romasz

1 Answers

0
votes

So, after 2 weeks of trying to resolve this issue I moved my application to Windows Phone 8.1 runtime from Silverlight.

It costs me 3 evenings and my problem was disappeared. I'm very unhappy that this is the solution, but I can't figure out, what is really wrong. Because my library works great with background tasks in Windows Phone 8.1 runtime.