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

Log browser settings, rendered html on client's browser.

We regularly receive reports about different client side errors especially our users seeing "this page contains secure and nonsecure items" warnings when using our site. We know that the various screens in our site contains all secure elements. If…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
0
votes
1 answer

MVC 3, Elmah and The view 'Error' or its master was not found

I am working on a legacy website that uses MVC 3, elmah and nhibernate. The Elmah log has literally thousands of " The view 'Error' or its master was not found" errors. I assume that it is covering up the real error. I cannot figure out how to…
user1069733
  • 485
  • 9
  • 17
0
votes
2 answers

Include "Application Name" in Exception Logging

I'm working out an implementation of ELMAH in a web application that logs exceptions to a SQL Server. That's inconsequential, however. My goal is to include the application name in the log so I can easily identify the offending application at a…
Chiramisu
  • 4,687
  • 7
  • 47
  • 77
0
votes
2 answers

How to set a custom route value so that only members with the Admin role can access my elmah.axd page in MVC3

I need to set a custom route value so that you are forced to go to site/admin/elmah.axd In my web.config I have:
Robert
  • 4,306
  • 11
  • 45
  • 95
0
votes
1 answer

updating elmah log-entries

I am using ELMAH to log exceptions thrown in my ASP.NET MVC project. The logging works like a charm, but i want to store additional information on errors. For this purpose the user has a text-area on the friendly error-page so he can enter for…
r3try
  • 667
  • 8
  • 20
0
votes
1 answer

Send error emails to that specific user when developing locally (using Elmah)?

I'm using Elmah and what I would like to happen is that when one of our multiple developers is running their project locally, they only receive any error emails generated from that local instance, if the error is generated on the live server, email…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
0
votes
1 answer

Elmah - inspect server variables

When debugging with elmah, is there any way to inspect the actual variables in an exception? I know that I can find the http-get/post variables in the querystring/form section, but is there any way to see the current values of variables in the…
Johan
  • 35,120
  • 54
  • 178
  • 293
0
votes
1 answer

Change the schema from elmah_error table in Postgres

I wanto to change the schema of the elmah_error table from public to elmah. I'm getting this error: Npgsql.NpgsqlException: relation "elmah_error" does not exist. It keep's searching for this table on public only. On the Web.config I'm trying to set…
0
votes
1 answer

ELMAH - is it possible to log errors AS WELL AS send e-mail manually through code?

I know Elmah can be used to manually log errors much like log4net can be used. However, is it possible to log a caught exception as well as e-mail the exception at the same time much like it does for unhandled exceptions. Thanks for your time
Dragan
  • 3,713
  • 12
  • 42
  • 59
0
votes
1 answer

elmah with mvc is logging twice

Everytime Elmah logs an error the error is logged twice. 100% identical with exact the same Timestamp. I have no special configuration in the web.config. I have created a ElmahHandleErrorAttribute an added two filters: filters.Add(new…
a-x-i
  • 303
  • 5
  • 13
0
votes
1 answer

What is the cost of using Elmah to manually log an error?

Answers to this stackoverflow question discuss how to use Elmah to manually or programmatically log a handled exception but do not discuss cost. What is the (theoretical) difference in cost between using the following for logging a handled…
LandedGently
  • 693
  • 1
  • 8
  • 16
0
votes
0 answers

ASP.NET MVC: The parameters dictionary contains a null entry for parameter

I am getting an error on a web site deployed on client machines. At first I thought it was caused by Windows authentication and multiple error providers as per my answer to the question here. But I have added Elmah to do logging on the client and am…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
0
votes
2 answers

Unhandled exceptions during AJAX

I am trying to implement some sort of handler for unhanded exceptions that occur during AJAX but since I am new I can't seem to get the hang of it. What I have experienced on my test setup is that nothing is returned to the client when an exception…
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101
0
votes
1 answer

Elmah and Sitecore and 404 error processing

Hello I am trying to setup ELMAH with Sitecore, I have read this http://newguid.net/sitecore/2011/using-elmah-for-error-logging-within-sitecore/#t-recent and it solution is working fine with some error from my point of view. 1. ELMAH skip store…
Arbejdsglæde
  • 13,670
  • 26
  • 78
  • 144
0
votes
1 answer

ElmahR configuration with asp.net MVC

I get Elmah to work correctly with MVC 3 and got down to setting up ElmahR for the same project. The configuration specified did not work for me. My configuration is below. I haven't changed the defaults much except adding the target Url and source…
ashutosh raina
  • 9,228
  • 12
  • 44
  • 80