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

Unhandled Exceptions on Asp.Net AJAX

I am using Asp.Net's AJAX implementation and need to do two additional things when an unhandled exception occurs: Log any unhandled exceptions using ELMAH Return a message back to the page I am inserting the AJAX script into the page using the…
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101
0
votes
1 answer

ELMAH IController factory not found - Right way to redirect to Error page - MVC

Am trying to use ELMAH with MVC4 and configured using NUGET Package for MVC. It handles all the exceptions happening in my code and am logging it to SQL Server. Using the Ajax Error function am handling AJAX Exceptions(500) Error too. Everything…
Peru
  • 2,871
  • 5
  • 37
  • 66
0
votes
1 answer

Elmah and blocking http HEAD requests

Would there be any consequence in blocking HEAD requests with Elmah? I get quit a few of errors that come through with Elmah. Should I have ASP.NET MVC accept HEAD requests? I'm not sure if I am missing something with HEAD.
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
2 answers

Elmah works on localhost, but not on production?

In my ASP.NET MVC 3 app, I've configured Elmah, and then Elmah.MVC for error logging. Both of which log just fine when running on localhost (Windows 7, IIS 6.1). On a production server (2008 R2, IIS 6.1), no errors are logged. I can browse to the…
0
votes
1 answer

Regex for 404 "does not exist" exceptions - ELMAH / ASP.NET

I am using ELMAH to log exceptions that are caught during application execution. On of the most frequent error messages is like so: The file '/page/default.aspx' does not exist. The file. '/error/404/default.aspx' does not exist. The file.…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
0
votes
1 answer

Elmah sends too many error mail

I install elmah in my asp.net webforms project. When i type http: //mylocalhost/application/asdfasdfasdfasdfsdf (wrong url) It logged error and send mail. But send too many mail. I got 1 error and it send 10 (may be 20) error mail. I don't know…
ftdeveloper
  • 1,053
  • 3
  • 26
  • 50
0
votes
1 answer

using ELMAH with visual studio 2003

I am trying to use Elmah with Visual Studio 2003, ASP.NET 1.1 (Legacy Application). When i try to add a refernce to Elmah.dll, VS 2003 throws an error which looks like as below: Configuration Error Description: An error occurred during the…
Baahubali
  • 4,604
  • 6
  • 33
  • 72
0
votes
1 answer

EntityCommandExecutionException when returning a PagedList

Edit: I've solved the original problem, but it gives rise to another question The problem was with this line && (logLevel == "All" || logLevel == "Error") The LINQ query in 'list' generated the following SQL SELECT 0 AS [C1], N'guid' AS [C2],…
jag
  • 387
  • 2
  • 14
0
votes
1 answer

Elmah and removing sensitive info, server variables from error page

In the Elmah error log page it shows server variables. However, while it is nice to have this extra info I'd like to turn this off as it displays authorization tokens which are sensitive. Is there way to configure Elmah to turn this feature off so…
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
1 answer

Cant get elmah to send email with MVC

"The specified string is not in the form required for an e-mail address." I get the above and then it looks for source. The email address is fine and I have the module in place. Errors are being logged fine. WHat else can be going on?
zsharp
  • 13,656
  • 29
  • 86
  • 152
0
votes
0 answers

ELMAH user not saving

I'm using ELMAH to log errors within my webforms vb.net website. The errors are saving within ELMAH_ERROR table in my SQL Database. I'm using Forms authentication. However when a user is logged into my system and they receive an error which then…
0
votes
1 answer

Send catched ajax exception back to server to perform logging?

i have an MVC3 application and i'm using Elmah to store the errors in a mysql database and even send those errors by email. This is working perfectly, now i have this javascript code in my main layout: $(document).ajaxError(function (e, xhr,…
Phoenix_uy
  • 3,173
  • 9
  • 53
  • 100
0
votes
1 answer

ELMAH --Is There a way to identify from Error log Unhandled or userHandled?

Am using ELMAH and want to know if the Error reported by ELMAH is Unhandled or it is handled in code and logged ErrorSignal.FromCurrentContext().Raise(context.Exception); Is there a way to identify it ? Might be a simple but just curious to…
user2067567
  • 3,695
  • 15
  • 49
  • 77
0
votes
0 answers

Asp.Net not giving enough error info

I'm getting frustrated with this code, as I can't figure out what is happening. My users occassionally get an error (I can't replicate it, as it works fine for me) when trying to edit a simple value on a webform: Server Error in '/cp'…
Mark
  • 7,778
  • 24
  • 89
  • 147
0
votes
1 answer

code issue adding ELMAH via nuget

I added ELMAH to my website and i am getting the following error in my web.config The inheritinChildApplications has a red squiggly meaning the compiler doesnt like it. and the location path portion is grayed out. Im new to using ELMAH, anyone have…
dinotom
  • 4,990
  • 16
  • 71
  • 139