I am trying to come up with a way to email a dev team when an exception occurs on a web page that I am developing. I heard of ELMAH, but I was hoping to use an internal Microsoft library to try and do that. I thought I saw an article online with a library, but I can’t seem to find it (saw it last Friday and I can’t seem to find it). If you could even point me to a tutorial of some kind, then I would appreciate it.
Share
many logging frameworks are capable of sending an email on a logged exception.
MS wrote the Enterprise Library: use the email trace listener
Enterprise Library: Logging Block and Email
or you can use a 3rd party such as log4net : smtp appender
http://logging.apache.org/log4net/release/config-examples.html
Elmah is not MS but here is a tutorial for that
http://www.storm-consultancy.com/blog/development/tools-plugins/setup-email-alerts-from-elmah-when-exceptions-are-raised/
enjoy