// If an error occurs during navigation, show an error window private void ContentFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) { /************************ Added By ME*/ Exception ex = e.Exception; while (ex.InnerException != null) { ex = ex.InnerException; } /*************************************/ e.Handled = true; ChildWindow errorWin = new ErrorWindow(ex); errorWin.Show(); errorWin = new ErrorWindow(e.Uri); errorWin.Show(); //e.Handled = true; //ChildWindow errorWin = new ErrorWindow(e.Uri); //errorWin.Show(); }