At a login page, I checked for the validity and I made a simple condition:
if (everything is good)
{
this.NavigationService.Navigate(new Uri("/implementationPage.xaml", UriKind.Relative));
}
Then comes an error that points to this method:
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
{
if (System.Diagnostics.Debugger.IsAttached)
{
MessageBox.Show(string.Format("page {0} failed, error: {1}", e.Uri.ToString(), e.Exception.StackTrace));
e.Handled = true;
// A navigation has failed; break into the debugger
System.Diagnostics.Debugger.Break();
}
}
Has anybody any idea why am I getting error?