I recently submitted a small app working on Silverlight framework.
But my app got rejected from the marketplace due to error 5.2.3 i.e Application Responsiveness After Being Deactivated.
What I found was :
After a user successfully completes the game(a puzzle), I am showing him a dialog :
MessageBoxResult mr = MessageBox.Show("You have won! Do you want to start another game?", "Information", MessageBoxButton.OKCancel);
if(mr==MessageBoxResult.Cancel)
{
NavigationService.GoBack();
}
Now the point is – If the user presses the start button after this dialog box is displayed, the app stops throwing an exception –
Navigation is not allowed when the task is not in the foreground. Error: -2147220990
It seems to me a valid error, though I am not sure how my other apps successfully passed the certification process though they had the same flaw. I have just started developing WP apps so I dont have much knowledge of things to do. Please could you help me a workaround.
It doesn’t look like there is an easy test for this case. It would appear that the
MessageBoxis cancelled before theDeactivatedevent is fired, so there is no way that I can see to test for this state.My suggestion would be to detect and swallow the specific exception: