Questions tagged [elmah]

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility for ASP.NET that is completely pluggable.

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.

To learn more about ELMAH, see the MSDN article “Using HTTP Modules and Handlers to Create Pluggable ASP.NET Components” by Scott Mitchell and Atif Aziz.

Installing ELMAH can most easily be done using its NuGet package:

Install-Package elmah
968 questions
12
votes
5 answers

"Resource not found" error while accessing elmah.axd in ASP.NET MVC project

My ASP.NET MVC application is within a folder called Stuff within IIS 6.0 webroot folder. So I access my pages as http://localhost/Stuff/Posts. I had EMLAH working while I was using the in-built webserver of Visual Studio. Now when I access…
theraneman
  • 1,620
  • 4
  • 18
  • 32
12
votes
2 answers

ELMAH and API controller in MVC4 not logging errors

Using an API controller in MVC4, when the controller action throws an exception, ELMAH does not log the error. I think the problem is that MVC4 sets the HTTP status code to 500, and it returns the exception details in a JSON object, but it does not…
Greg Ennis
  • 14,917
  • 2
  • 69
  • 74
11
votes
2 answers

VS2008 Web Deployment Project Section Replacement with Elmah

I'm using a web deployment project and want to do some section replacement with the emlah/errorMail section. I don't want to send emails in debug build mode. I have created the custom section and put it in an errorMail.config. In the properties of…
Josh Close
  • 22,935
  • 13
  • 92
  • 140
11
votes
1 answer

ELMAH: Only sending specific exception type via mail

I have ELMAH set up for a webapp, logging exceptions to a SQL server. I wish to have ELMAH send me an email too, but only when a specific exception is thrown (ie. MySpecialException). ELMAH must still log all exceptions to SQL server. I know you…
Sir Code-A-Lot
  • 595
  • 6
  • 16
11
votes
4 answers

Limiting the Number of Emails Sent By Elmah

Does anyone know of a good way to limit the number of emails sent by Elmah during a time period like you can with Health Monitoring? I want to be able to limit the emails for each error from each page to only an email once an hour or so for that…
beckelmw
  • 1,722
  • 2
  • 16
  • 23
11
votes
2 answers

Could not find schema information for the element 'elmah'

I read all the answers already posted here but none seems to solve. Elmah is working flawlessly even if I got those warnings. Also I got those errors when I launch debug (f5) in visual studio 2012. On build everything is fine. Config section in…
Manight
  • 500
  • 5
  • 26
11
votes
1 answer

Configuring ELMAH: Unrecognized config section error

Setup: Windows XP .NET Framework 3.5 SP1 ASP .NET MVC Version 1 I've been trying to set up ELMAH by following the instructions at http://code.google.com/p/elmah/wiki/MVC but I just get the following error when press F5: Description: An error…
Zian Choy
  • 2,846
  • 6
  • 33
  • 64
11
votes
2 answers

Dynamic email subjects with Elmah?

I'm using the errorMail functionality of Elmah to send an email when ASP.NET encounters an error. It allows you to configure the SMTP settings as well as hard-code a sender, recipient, and subject. My question is: can I use a dynamic subject?…
Portman
  • 31,785
  • 25
  • 82
  • 101
11
votes
1 answer

Elmah setup with SQL Server 2008

I am using MVC 3 with SQL Server 2008 R2 DB. I installed elmah 1.2.2 and SQL Server script. Might anybody have some detailed information on how to setup Elmah with SQL Server 2008. I checked online but could not find detailed information.
Nate Pet
  • 44,246
  • 124
  • 269
  • 414
10
votes
4 answers

Is it possible to use ELMAH in a SharePoint environment?

Has anyone integrated ELMAH into their SharePoint environment? I suppose it's possible as it's all ASP.net, but I just wondered if anyone had done it and if there's a walk through on how to achieve it?
Rob
  • 1,688
  • 4
  • 30
  • 43
10
votes
1 answer

Elmah is not triggering when custom errors is enabled

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:
KallDrexx
  • 27,229
  • 33
  • 143
  • 254
10
votes
2 answers

Elmah - Catch an Error, but still log it and send email?

First I found that you can catch it and log it inside a catch, but this doesn't send an email. Then I found out about using the Error Signal class. That worked, however what wasn't apparent from reading, is that it treats the error like normal, so…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
10
votes
7 answers

stopping ZmEu attacks with ASP.NET MVC

recently my elmah exception logs are full of attempts from people using thus dam ZmEu security software against my server for those thinking “what the hell is ZmEu?” here is an explanation... “ZmEu appears to be a security tool used for discovering…
JGilmartin
  • 8,683
  • 14
  • 66
  • 85
10
votes
2 answers

How to log info with Elmah

is there any message type I can specify in the Elmah settings? It seems it can only log errors but not normal messages. Or is there any plug in for Elmah to handle that? Thanks in advance!
zs2020
  • 53,766
  • 29
  • 154
  • 219
10
votes
5 answers

How do I log EntityValidation errors using ELMAH MVC?

I've been writing an application using MVC4 and EF5.x, and using ELMAH for logging exceptions for review. We recently released the application, and as expected the ELMAH log filled up with several dozen exceptions. Great (and not)! The problem is…
Elsimer
  • 1,878
  • 3
  • 18
  • 33