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
42
votes
1 answer

Elmah: How do I log form post data?

Is there a way to log the post request data in ELMAH? I am getting error emails, and while the error log contains the URL, request method, etc, I am not seeing the actual POST data. For example, Here is a sample Actual request:…
Abe
  • 6,386
  • 12
  • 46
  • 75
42
votes
4 answers

elmah: exceptions without HttpContext?

I spawn a thread on Application_Start and would like to log exceptions. There is no Context/HttpContext/HttpContext.Current, so how might I get it to log? At the moment, it does not catch any exception in my threads and if I write…
user34537
37
votes
3 answers

How to configure ELMAH to work with Windows Azure? I get a 404 on Elmah.axd

I have an ASP.NET MVC web role running on Windows Azure and have setup ELMAH properly in the web.config. I also have my global.asax ignore *.axd routes. Locally, I am able to load /elmah.axd, however when I deploy to Azure, I get a 404 on that…
Rob Volk
  • 5,204
  • 5
  • 25
  • 19
37
votes
5 answers

The view 'Error' or its master was not found

I've spent a lot of time trying to figure out a workaround for this to no avail, so I thought I'd see if anyone here has an idea. I'm using Elmah in my ASP.NET MVC3 application. I'm using the exact same code from the accepted answer in the previous…
Justin Helgerson
  • 24,900
  • 17
  • 97
  • 124
37
votes
4 answers

How to set up Elmah with ASP.NET Web API

I've tried many elmah nugets but they didn't work with ASP.NET Web API. Does anybody knows why? Is there any work around for that?
user1327991
35
votes
4 answers

How do I create the ELMAH SQL Server database?

How do I create the ELMAH SQL Server database? I added it to my ASP.NET MVC project through NuGet and don't have the sql script on my machine.
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
35
votes
3 answers

ELMAH - MVC 3 - 403 - Forbidden: Access is denied

I have installed Elmah for MVC using NuGet, I'am able to login with success error in the db. The only problem is that I cannot access the /elmah URL to access the Error Log Page. Here part of my configuration, could you please point out if I have…
GibboK
  • 71,848
  • 143
  • 435
  • 658
34
votes
3 answers

Handle exceptions in web services with Elmah

Is there a way to globally handle exceptions in regular ASP.NET Web Service (asmx) using ELMAH like we do it in ASP.NET web site ?
mberube.Net
  • 2,120
  • 2
  • 29
  • 39
27
votes
3 answers

Elmah error logging, can I just log a message?

I just installed Elmah (https://code.google.com/p/elmah/) for my ASP.NET application. Is it possible to log a message without creating an Exception first? catch(Exception e) { Exception ex = new Exception("ID = 1", e); …
user603007
  • 11,416
  • 39
  • 104
  • 168
26
votes
1 answer

MVC ELMAH and SQL Azure

back-story: We mainly use AWS for everything (hosting, database, notifications, etc.). Now, I'm looking at moving the database side to SQL Azure since we've been getting crazy bills on AWS RDS. So all I tried to do was create a DB in SQL Azure and…
AnimaSola
  • 7,146
  • 14
  • 43
  • 62
26
votes
3 answers

Use single Elmah.axd for multiple applications with single DB log

We have a single SQL Log for storing errors from multiple applications. We have disabled the elmah.axd page for each one of our applications and would like to have a new application that specifically displays errors from all of the apps that report…
RSolberg
  • 26,821
  • 23
  • 116
  • 160
25
votes
5 answers

The remote host closed the connection Error, how fix?

i am using elmah -> Elmah.axd in my project for finding errors. there is an error like this : System.Web.HttpException: The remote host closed the connection. The error code is 0x800703E3. Generated: Sun, 27 Nov 2011 13:06:13…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
25
votes
2 answers

External Config Files with elmah

I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this:
ilivewithian
  • 19,476
  • 19
  • 103
  • 165
23
votes
4 answers

Elmah basic setup questions/issues

I'm not finding this to be easy to setup; either there is a missing step in the setup configuration, it isn't work correctly, or I don't actually understand it's purpose. There is something definitely wrong here. The problem must obviously be me.…
Mike
  • 1,405
  • 1
  • 17
  • 27
23
votes
1 answer

ELMAH - Filtering 404 Errors

I am attempting to configure ELMAH to filter 404 errors and I am running into difficulties with the XML-provided filter rules in my Web.config file. I followed the tutorial here and here and added an
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
1
2
3
64 65