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

  • Home
  • SEARCH
  • 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 6666929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:52:48+00:00 2026-05-26T02:52:48+00:00

When I have my custom errors disabled, Elmah is taking all exceptions that occur

  • 0

When I have my custom errors disabled, Elmah is taking all exceptions that occur and logging them into my database and emailing me.

However, the second I change my web.config to:

<customErrors mode="RemoteOnly" defaultRedirect="~/Home/Error">
</customErrors>

Elmah stops functioning. It no longer logs exceptions to the database or anything, all I see is my custom error action being executed.

How can I have custom error messages and still have elmah log exceptions? I am currently not doing any other exception intercepting besides Elmah.

  • 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-26T02:52:48+00:00Added an answer on May 26, 2026 at 2:52 am

    Figured it out!

    The reason this was occurring was because I had filters.Add(new HandleErrorAttribute()); in Global.asax. I don’t know why this is there, but that was what was causing this to fail when custom errors was enabled. Removing this line caused Elmah to work properly with custom errors.

    Also, telling elmah to log “handled” errors also works, as described by this answer.

    I don’t truely know the full ramifications of either option though.

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

Sidebar

Related Questions

I keep reading that an ASP.NET based web site should have custom errors enabled
I have custom errors configured in my web.config, but IIS 6.0 is returning the
I have a custom error handler attached to E_ALL PHP errors. In an external
I have a custom error page set up for my application: <customErrors mode=On defaultRedirect=~/errors/GeneralError.aspx
Given that I have a custom PHP error handler already, does it make sense
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have custom errors set in the web config file as follows: <customErrors mode=RemoteOnly
I have implemented custom errors in my asp.net mvc application by following this article
I have custom errors turned on and when I go to www.mywebsite.com/video/default.aspx it shows
Setup: I have a custom class I've created that handles data retrieved from 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.