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
16
votes
2 answers

Why I do not have access rights on the server?

I use Elmah in local - alright. On the server however, it issues the followed error, and I cannot figure out what how to gain access. 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the…
Mediator
  • 14,951
  • 35
  • 113
  • 191
15
votes
3 answers

Elmah: How to get JSON HTTP request body from error report

I'm using Elmah to log exceptions. Elmah is great at logging request bodies if the request is a Form-based request (i.e. Content-Type: application/x-www-form-urlencoded), but with JSON based requests where the content type is application/json, the…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
15
votes
3 answers

How can I restrict remote access to Elmah?

With Elmah installed on our dev web server .. can we restrict who remotely accesses it? Even f we hardcode the username/passwords (hashed?) or is it only via IP?
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
15
votes
6 answers

Elmah and ASP.NET MVC 3

What are the steps required to set up elmah on an ASP.NET MVC 3 application? nuget elmah customize elmah (storage, etc) handle HandleError Is that all? Is step 3 still necessary after nuget?
Endy Tjahjono
  • 24,120
  • 23
  • 83
  • 123
14
votes
1 answer

How to get Elmah working with ASP.NET and IIS 5.1 URL Routing

I am having issues with regards to running my ASP.NET MVC application thru my local IIS 5.1 web server. I believe these issues are related to IgnoreRoutes, but I can't seem to craft an IgnoreRoute such that it resolves the problem. Problem: I am…
J.C.
  • 2,102
  • 1
  • 19
  • 28
14
votes
2 answers

Using log4net and where to implement it and using with elmah?

does anyone have experience with log4net, i have been looking at elmah which is great. But i wanted a little bit more control i.e. to use logging not only in asp.net but also in wpf. Anway i decided to take a look at log4net. I have 2 clients, (wpf…
Mark Smith
14
votes
4 answers

Googlebot causes .NET System.Web.HttpException

I have an ASP.NET website mixed with classic asp (we are working on a conversion to .NET) and I recently upgraded from .NET 1.1 to .NET 4.0 and switched to integrated pipeline in IIS 7. Since these changes ELMAH is reporting errors from classic asp…
user833610
14
votes
2 answers

Logging unhandled exceptions using NLog? Should ELMAH and NLog be used together?

I am using ELMAH in my ASP.NET MVC projects and I really like its simplicity. But I needed the ability to log certain events in my code in a log.Info("message") manner. Since ELMAH does not provide that ability I started looking at NLog. A few…
Thomas
  • 5,888
  • 7
  • 44
  • 83
14
votes
4 answers

Clientside error logging using Elmah

I'm using ELMAH to log my .net errors. It's working great, but I want to extend the error logging to include client side errors, i.e arbitrary JavaScript errors. I can capture the errors using window.onerror event and then call a .net handler…
Daniel Brink
  • 2,434
  • 4
  • 24
  • 26
14
votes
2 answers

Is there any way to programmatically set the application name in Elmah?

I need to change the app name based on what configuration I'm using in Visual Studio. For example, if I'm in Debug configuration, I want the app name to show as 'App_Debug' in the Application field in the Elmah_Error table. Does anyone have any…
Mark Struzinski
  • 32,945
  • 35
  • 107
  • 137
14
votes
1 answer

Why can't my web project find my elmah.axd file

In my web.config file I have all the references to elmah that I need in order to have elmah running. Except this part of the code:
Robert
  • 4,306
  • 11
  • 45
  • 95
14
votes
7 answers

Elmah not logging exceptions for http post requests in MVC app - if the request contains XML

I've come across a weird problem in my MVC4 (RC) application. (running on .NET 4.0) I have just setup Elmah for logging exceptions / errors. I basically installed the Elmah.MVC and elmah.sqlserver NuGet packages. (versions 2.0.0 and 1.2…
asgeo1
  • 9,028
  • 6
  • 63
  • 85
14
votes
2 answers

Securing ELMAH while yet making it possible to access it via RSS Reader

We use ELMAH error exception logging in our application. I'd like to keep ELMAH secure from regular users while still making it available to administrators/developers of the application. When you set security with forms authentication in the…
RedWolves
  • 10,379
  • 12
  • 49
  • 68
13
votes
2 answers

Where should you do regular logging in asp.net-mvc ? Should you use ELMAH?

I want to start logging when items get removed from my asp.net cache and i am trying to figure out where and how to do this. i see that ELMAH is recommended for application wide exception handling logging system but can (and should) it also be used…
leora
  • 188,729
  • 360
  • 878
  • 1,366
13
votes
1 answer

Separate viewer application for ELMAH's log

We're using ELMAH for error logging in our ASP.NET application. We use the SQL Server error logging. Because of security and configuration constraints in the application, we would like to have the log viewer UI (Elmah.ErrorLogPageFactory) in a…
Liedman
  • 10,099
  • 4
  • 34
  • 36