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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:49:04+00:00 2026-06-11T12:49:04+00:00

Background I had [HandleError] in place in my MVC web app for exception handling

  • 0

Background

I had [HandleError] in place in my MVC web app for exception handling but later it couldn’t handle some exceptions so I was suggested to move on to the alternative Application_Error (my SO Post) I also ended up using ELMAH which seems better.

Well, ELMAH rocks! But I was unable to find how to show formatted exception with it (like I do with Application_Error)

ELMAH v/s Application_Error

ELMAH – Provides (almost) out of the box exception logging and other features like email. Its completely dependent on web.config and a bunch of files it requires. Able to log exception in xml / database (as configured) and is capable of email, rss, etc. Provides a page where user can view the full exception log and drilldown for details.

Pros: Doesn’t show formatted exception upon error. Makes the web.config a bit bulky. The set of ELMAH files is 2.8mb (more then
twice the size of my entire web app zip). Can’t format error / email. It is dependent
on System.Data.SQLite.dll which is CPU architectue dependent (x64 or
x86) SO post

Application_Error – Catches all the exception and we’re able to navigate user to show a formatted error. We control what is being showed and Emailed. Completely managed code (no CPU dependency) no extra web.config settings. No extra dlls.

Pros: No implicit exception logging (we need to code). No log viewer
like ELMAH. Email, logging – we’ve to manage all.

CONCLUSION:
Firstly, please tell me if ELMAH can “completely” replace my Application_Error. Also, I didn’t find much on how to configure the error message being displayed / emailed with ELMAH. Or do they have to co-exist (Application_Error to show formatted error and ELMAH for pretty much everything else)

Please suggest and share your experience.

  • 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-06-11T12:49:06+00:00Added an answer on June 11, 2026 at 12:49 pm

    I can live with ELMAH (except for showing formatted exception details to the user – or atleast I didn’t find anything for that)

    I wonder what was missing in my post to attract SO audience. I got my thread answered by Atif himself – quicker, simpler!

    https://groups.google.com/forum/?fromgroups=#!topic/elmah/Md9DslGgwNo

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

Sidebar

Related Questions

I had set background image for Edittext. But when the user clicks on edittext
I had some CSS like this: a { display: block } a:focus { background:
Some background information, for a homework assignment I had to write a polish notation
After Applying Code first paradigm in my Asp.net mvc3 app. The background DB had
Had a few problems getting background-image displaying in Firefox, I made it work but
I wanna set My Scene Background but I don't know how! I had read
I'm new to C# coming from a python background. I've had a hard time
Background : I'm trying to convert some JavaScript code which uses the the Crossfilter
I had an SVN background before and I get used to working between branches
I had this drawable to have a rounded rectangle as a background: <shape xmlns:android=http://schemas.android.com/apk/res/android>

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.