How do I combine MVCContrib's "Rescue" with Elmah?
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-03-22T08:27:28Z
Indexed on
2010/03/22
8:31 UTC
Read the original article
Hit count: 306
I got the Rescue attribute working. It properly serves up the DefaultError view when there is an unhandled exception.
However, these exceptions will not get logged or emailed. This SO question is answered by Atif Aziz and it looks pretty solid, but it applies to the built-in HandleErrorAttribute, which Rescue replaces, right? How do I get that to work with Rescue? I want to make sure that if an unhandled exception arises, that the user gets served up the view specified with the Rescue attribute, but the exception is still properly logged, and viewable with elmah.axd.
© Stack Overflow or respective owner