This application ha encountered an error..etc

I am sorry if the subject has already been dealt with, but I can’t find any answers.
I ask if it is possible, in a web application, to intercept and manage in a different way the popup message “The application has encountered an error and can not continue …etc etc. …”.


This usually means that your app is encountering an exception of some sort. Start by implementing the Session.UnhandledException and the App.UnhandledException events and have them write the stack to a file. That’ll at least tell you where the problem is (which method) and what kind of exception your code needs to be dealing with.