Let\'s say that WPF WebBrowser control shows some navigation errors and the page is not showing.
WPF WebBrowser control
So there is an exception of WPF WebBrowser contro
WPF WebBrowser contro
It is also possible to use dynamic approach here.
dynamic
wb.Navigated += delegate(object sender, NavigationEventArgs args) { dynamic doc = ((WebBrowser)sender).Document; var url = doc.url as string; if (url != null && url.StartsWith("res://ieframe.dll")) { // Do stuff to handle error navigation } };