.NET Tip of The Day
Learn one new .NET trick every day
Быстрое пополнение счета телефона      Login or Join

Send an e-mail any time an unhandled exception occurs

Consider using built-in ASP.NET health monitoring to monitor your website. Especially if you are not monitoring it at all yet. ASP.NET health monitoring contains ready-to-use Web health-monitoring events classes (Web events) and health-monitoring providers (listeners). For example, you can easily configure it to send an email any time an error is detected.

5/10/2008

Comments:

This is another one of those great features of ASP.Net you don't hear much about. I've written a quick primer on how to use health monitoring at http://blueonionsoftware.com/Blog.aspx?p=51a58047-dd12-4797-b255-f7eb6fb6dbb8

Mike 5/10/2008 3:47:16 PM

Great Concept!

This post falls short when you simply want to test the exception handling process. Every hyperlink above is super-generic and following them results in hundreds of emails and nothing specific to the Unhandled Exceptions mentioned in the title.

If you want to attempt the mentioned situation above, prepare to do a lot of leg-work on your own.
(i gave up after an hour)

crappy post 5/15/2008 6:00:28 PM

Follow the last link if you want to configure Health Monitoring to send an email when an unhandled exception occurs. Actually, Mike's link is even better. For me it took less than hour to do this configuration for this site. I'll be glad to help you with this.

kostya.ly 5/15/2008 8:40:07 PM

Link changed: http://msdn.microsoft.com/en-us/library/ms178703(VS.85).aspx

James Skemp 11/21/2008 6:30:38 PM

Name
URL
E-mail
Provide your e-mail address to receive notification about new comments.
Message
HTML tags are not supported.
Please add 5 and 3 and type the answer here:
RSS .NET Tip of The Day
Subscribe to receive one tip from the .NET Tips and Tricks Community per day.
Previous Tips of The Day
The best of the .NET Tips & Tricks Community.
.NET Practitioners .NET Tips & Tricks Community
Every .NET practitioner has a trick up in their sleeve. This is the place to share it with other .NET people.
Submit a Tip
Discovered a new trick? Share it with others.
My Tips
Manage tips you authored.