ASP.NET 2.0 - Catch an Error - Send an Email
When one of the apps I have developed throws an exception, I want to be notified, and get all the details about the error that ocurred. I like using the following code to accomplish this, because the email is simple yet detailed.
It starts off with the time it occured, followed by the logged on user, followed by the browser version being used. Then it will list all errors going up the exception chain (not just the last one), showing the details of each exception and the stack trace of each one.
catch_an_error_send_an_email.txt
It starts off with the time it occured, followed by the logged on user, followed by the browser version being used. Then it will list all errors going up the exception chain (not just the last one), showing the details of each exception and the stack trace of each one.
catch_an_error_send_an_email.txt
0 Comments:
Post a Comment
<< Home