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
0 answers

ELMAH notification emails send fine via SMTP but won't save to local folder

I have ELMAH working nicely and it is configured to send me an email when an exception is thrown. I've changed my web.config mailSettings tag's child elements to try and save the emails to a local folder but it doesn't seem to be saving anything.…
Marc
  • 924
  • 1
  • 8
  • 18
0
votes
0 answers

A potentially dangerous Request.Path with strange URL

I was viewing my elmah.axd file (which can only be viewed by one user). I have seen the following error (more than 100 ). with strange url A potentially dangerous Request.Path value was detected from the client…
Zia
  • 473
  • 1
  • 4
  • 17
0
votes
1 answer

Difference between ELMAH and Global.asax exception handling

I have website and I need to log exceptions globally, cannot understand what is difference between using ELMAH as error logging mechanism or use Application_Error in Global.asax, I think that all will log all exceptions thrown, or I'm missing…
0
votes
1 answer

Does Elmah run into race condition when 2 session write to the same log file simultaneously?

I am developing with ASP.NET MVC, and I am considering using Elmah. My concern is : When 2 users visit my site and trigger a logging event (write to a logger file) simultaneously, will Elmah use something like reader/writer lock to handle race…
0
votes
2 answers

Can ELMAH be used in Xamarin solutions?

Reading this today, and probably embarking on a Xamarin solution very soon (the other possibility is "going native" with just Android, using Android Studio), I got to wondering: Can ELMAH be used in Xamarin solutions? And, in fact, if the road less…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

ELMAH filter crawler errors

I´m using the ELMAH to handle the application errors but I´m receiving a lot of errors of crawler access. How can I filter the errors only for user access, no robots. Best regards Ernesto
Ernesto Rodriguez
  • 257
  • 2
  • 9
  • 26
0
votes
0 answers

MVC4 ExceptionContext ExceptionHandled Property no try catch block ELMAH

I am trying to install and test ELMAH for the fist time. I think I have setup everything correctly. I know ELMAH is designed to log unhandled exceptions. I use a standard template MVC 4 application generated by Visual Studio 2012 In a HomeControler…
Sebastian Widz
  • 1,962
  • 4
  • 26
  • 45
0
votes
0 answers

elmah, stop logging errors from other sites

We have elmah implemented on one site on our server. There is another site on the server where elmah is not configured. However, elmah is recording a lot of errors that are being thrown on the other site. Is there a way to filter these…
Mike
  • 2,299
  • 13
  • 49
  • 71
0
votes
1 answer

Customizing Error Messages that Elmah Writes To the Database

Entity Framework's DbEntityValidationException renders a message of Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. With a stack pointing to where the error occurred. It would be really, really…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
0
votes
1 answer

Elmah in Web Forms app - not working 'Place not found'

I have installed elmah on an existing ASP.NET 4.5.1 web forms app by typing: install-package elmah in the nuget package manager. It states I have to go to localhost/myapp/elmah.axd to see the log - but I get this error: Place not found I have…
niico
  • 11,206
  • 23
  • 78
  • 161
0
votes
1 answer

Logging 404 errors (with target and referrer URL fields)

I want to collect and analyze 404 data to address any real issues, in an ASP.NET MVC site (with ELMAH). The chief requirement is to store this information in a more specialized and dense but still queryable format, including the referring…
shannon
  • 8,664
  • 5
  • 44
  • 74
0
votes
0 answers

Log4net not logging message in defined file

I am using visual studio 2010, for logging I wanted to create common library project of my own to use both log4net and elmah and call it from any of my other project, could be another library project or web service or web application. So, using…
aman19161
  • 51
  • 7
0
votes
0 answers

Elmah modify current exception before logging

I have an Asp.net MVC project which is using Elmah to log the exceptions. The project is using Entity Framework which can throw a DbEntityValidationException exception where is specifies which properties couldn't be saved into Database. I am trying…
Catalin
  • 11,503
  • 19
  • 74
  • 147
0
votes
0 answers

Signal error from portable class library

I'm using a portable class library project that is performing some parsing. It's used from a aspnet mvc project. In some cases the parsing goes wrong and I need to eat the exception. However, I still want to log it using Elmah. Since it's a portable…
Carl R
  • 8,104
  • 5
  • 48
  • 80
0
votes
2 answers

Configure Elmah email settings in code rather than config

I'm setting up Elmah emails and I don't want to put my email account credentials in web.config. I'm deploying on Azure and therefore would like to look up the credentials from Azure app settings in code on app startup. Is there a way to configure…
Matt Jenkins
  • 2,824
  • 1
  • 30
  • 34