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

elmah causes application crash

Has anyone else run into an issue where Elmah has caused application crashes? On one of my site this was definately the case but I had been using it for a long time beforehand and never had this problem. Now another site that uses it has had…
Paul Johnson
  • 1,417
  • 1
  • 17
  • 26
0
votes
1 answer

Why does XDocument.Load throw exception when ELMAH is enabled?

I have the following code that retrieves a link to the latest post from the blog subsite: XDocument doc = XDocument.Load("http://www.mysite.com/blog/syndication.axd"); XElement node = doc.Descendants("item").FirstOrDefault(); string text =…
Rich Bennema
  • 10,295
  • 4
  • 37
  • 58
0
votes
1 answer

How to create an exception with redirection to user-friendly error page in MVC

I have an MVC action which generates a Word document: [HttpGet] public ActionResult ExportToWord(string docId) { try { //... //Word-document generating is done here... //... return File(stream,…
podeig
  • 2,597
  • 8
  • 36
  • 60
0
votes
1 answer

Not all errors catched by global.asax C#

I am attempting to catch all errors except '404-File not found' error in global.asax file and writing in to a text file in server,But lot of errors gets missed ,like FormatException Error,Sessionout Error and "Yellow Page of Error" Appears ! How can…
sajanyamaha
  • 3,119
  • 2
  • 26
  • 44
0
votes
0 answers

ASP.NET MVC Error Page Being Found but getting Elmah Email

I have an error page located at Errors/Error in my ErrorsController. If I create an error it redirects me to that page fine. However I get a error email from Elmah stating the message below. Is there a reason why I am getting this message even…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

Elmah xml log files on network (unc) path

I am using elmah to log files in MVC. here is the setting for the logPath in web.congif file but i want to store the logs on the UNC path.(Network path) I tried directly using UNC path but it does not work. eg \\NetworkPath\ErrorLogs\Errors
Mangesh
  • 3,987
  • 2
  • 31
  • 52
0
votes
2 answers

Getting started with Elmah?

I've read http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx and would like to use it in my mvc application; I'm running the MVC 2 preview. My problem is, that when I follow instructions in article (providing…
Anders Juul
  • 2,407
  • 3
  • 34
  • 56
0
votes
1 answer

a list of errors and exceptions that ELMAH catches and logs

I tried to find a list of errors and exceptions that ELMAH can catch and logs but I couldn't . I wonder if ELMAH catches things like members logins or failed logins , request errors like 401 , 403 ,404 and ... . thanks in advance .
mohsen dorparasti
  • 8,107
  • 7
  • 41
  • 61
0
votes
1 answer

Where can I find information/tutorials on changing the ELMAH UI?

I'm interested in information about changing ELMAH's UI. I know its possible, either through the ErrorLogPageFactory (not much info about it out there) or by rolling your own. In short, I'm interested in the built-in facilities of ELMAH for…
user1228
0
votes
1 answer

ELMAH Filtering Programmatically not working

Elmah always kick in. How to filter programmatically: Here is my Global file: /// /// Handles the Filtering event of the ErrorLog control. /// /// The source of the event. ///…
user81740
  • 233
  • 1
  • 4
  • 11
0
votes
1 answer

Elmah (mvc4) ignores the customErrors (but it logs)

I've just migrated a MVC3 project to a 4. I also installed the newest update of ELMAH. I do have an issue with unhandled exceptions. In my web.config I have this:
Stefanvds
  • 5,868
  • 5
  • 48
  • 72
0
votes
1 answer

Programmatically disposing of the Elmah email onMailing

I have an issue with Elmah, I've overriden the Mailing method. And I want it to dispose of the mail (not send it basically) when my App isn't in Live mode. Problem is when I do this, when my ErrorHandler (in my ASP.NET MVC app) tries to raise the…
williamsandonz
  • 15,864
  • 23
  • 100
  • 186
0
votes
1 answer

ELMAH logging when customErrors mode= 'Off' and error is cleared in Application_Error event

This question relates to using ELMAH in an ASP.Net application. I have the following in my web.config. Also, whenever an unhandled error occurs, I clear it in Application_Error event as in code…
Sunil
  • 20,653
  • 28
  • 112
  • 197
0
votes
2 answers

ELMAH not logging in WCF

I've implemented the solution explained here: Exception Logging for WCF Services using ELMAH When I debug my code, the ProvideFault in the ErrorHandler is executed correctly and the line which calls ELMAH is also…
0
votes
2 answers

Secure elmah directory gets 404?

I've setup ELMAH on a asp.net mvc 3 site with the correct configuration detailed on another SO question here. Everything works great on my local virtual dev IIS server but when I deploy to an IIS server when I try to go to /Admin/Elmah.axd I get…
NullReference
  • 4,404
  • 12
  • 53
  • 90