Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6824749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:56:21+00:00 2026-05-26T21:56:21+00:00

Whenever an exception is thrown from my normal controller action methods elmah correctly redirects

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:56:21+00:00Added an answer on May 26, 2026 at 9:56 pm

    I’m going to cite Scott Wilson from the ELMAH Google groups:

    — soccerdad wrote:

    My question is what’s the “best practice” means to accomplish what I
    described. Should I handle Application_Error in global.asax and do
    those things? Are other folks doing something different?

    The best practice would be to use Elmah as-is and to configure a
    custom error page in the web.config file. Elmah will catch errors
    and log them without any interference on the rest of the application.
    If you want a custom error page, that can easily be set up in the
    standard ASP.NET web.config CustomErrors section. Neither will affect
    the operation of the other. Regards, Scott

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have IronPython hosted within my application, whenever I catch an exception thrown from
I have a HttpModule in C# 2.0 which handles exceptions thrown. Whenever the exception
Whenever I throw an exception in my service, another exception is thrown right after
Ok, I have a strange exception thrown from my code that's been bothering me
Whenever a user reports an error such as System.Runtime.InteropServices.SEHException - External component has thrown
Whenever an error is thrown in my Razor view (.cshtml), I get a yellow
I am getting a PermGen Space Exception whenever I deploy my web application. I
I want to get Default Windows Forms Unhandled-Exception Dialog whenever my C# application encounters
I'm handling all of my unhanded exception in the code but whenever one happens
Our code catches the general exception everywhere. Usually it writes the error to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.