Whenever an exception is thrown from my normal controller action methods elmah correctly redirects the browser to the custom error page.
However, I have an Html.RenderAction call in my master page that can calls my HomeController.TopLevelNav method. The TopLevelNav method is a child action, and if it throws an exception elmah doesn’t redirect the user to the error page. Instead I see the ysod “runtime error” page.
I’m going to cite Scott Wilson from the ELMAH Google groups: