I want to create a custom error page to handle all unhandled exceptions.
I want to redirect to it from the Application_Error(object sender, EventArgs e) method located in Global.asax.cs. How can I show in it some detailed information from the exception which throws the application error?
I’ve done the same thing you are talking about. I created an ErrorPage that displays info to the user. I also created a function that writes the error info into the Event Logs…
For the page, this is what I’m doing. Just put the labels on there somewhere…
This is what the LogError function looks like…