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 7048989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:57:30+00:00 2026-05-28T02:57:30+00:00

We have an ASP.NET webforms app that has try/catch blocks all throughout. In the

  • 0

We have an ASP.NET webforms app that has try/catch blocks all throughout. In the catch block, it calls a method that sends an email containing limited information about the error thrown.

We want to implement ELMAH in this app, but ELMAH only works with unhandled exceptions (based on my experiences, at least). What I would like to do is, instead of removing all the try/catch blocks from the app, replace the code within the method that sends the email with a call to ELMAH that will force ELMAH to send an email as if the exception were unhandled. It would look just like the regular email, complete with stack trace, authenticated user, referring URL, etc.

  • 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-28T02:57:30+00:00Added an answer on May 28, 2026 at 2:57 am

    If you handle the exception, ELMAH will not receive it.

    ELMAH is not designed to be a full logging framework but to work alongside one, such a log4net.

    Instead of trying to force ELMAH into this role, consider using a dedicated logging framework for your handled exceptions.

    You can signal ELMAH from your handling code if you really need to, as described in this answer to does elmah handle caught exceptions as well:

    ErrorSignal.FromCurrentContext().Raise(ex);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.net webforms app that connects to a web service, All the
We have an ASP.NET 2.0 WebForms app that uses MS Ajax 1.0. It's working
We're having trouble with an existing ASP.NET Webforms app. It's an app that has
I have a reporting module in an ASP.NET webforms app (C#) that uses dynamic
I have an asp .net webforms app that uses forms authentication. For a small
I have an ASP.Net webforms app, that uses Ninject 2.2.0.0 I have a HTTPHandler
I have a webforms app that uses a few ASP.NET AJAX Timer controls (i.e.
I've got an old WebForms-based ASP.NET app that I have upgraded to ASP.NET 4.0
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
I have a simple web app built in asp.net webforms c# where and how

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.