I m getting an error in WP 7.1 like below
InvalidOperationException
“Navigation is not allowed when the task is not in the foreground”
In the following line of code
NavigationService.Navigate(new Uri("/PhotoPreview.xaml", UriKind.Relative));
I dont have any clue how to solve it. It would be great if you can provide some pointers
If you need to call it from the main UI thread, use this: