By default, ASP.NET MVC applications are of the form Shared / Error.aspx, which inherits from
System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>
If your controller uses the [HandleError] attribute, all exceptions will continue to bubble until they are caught and they get to this page.
I just added the built-in Load_page (valid in this case, since this is the end of the line):
<script runat="server"> Sub Page_Load(ByVal Sender As System.Object, ByVal e As System.EventArgs) MyExceptionHandlerService.LogException("exceptionsource", this.Model.Exception) End Sub </script>
After that, the friendly message "Sorry ...". It definitely looks like ELMAH is more reliable, but that was enough for my needs.
Peter J May 01 '09 at 16:20 2009-05-01 16:20
source share