I try to create an error page on this manner:
privatevoid Application_UnhandledException(object sender,ApplicationUnhandledExceptionEventArgs e){
ErrorPage ep= newErrorpage();this.RootVisual = ep;}
but if this occures i get an javascript exception?