elmah

ASP.NET MVC - Elmah not working and returning 404 page for elmah.axd

Hi there, I'm trying to use elmah for my MVC application and I've followed the steps on the wiki: http://code.google.com/p/elmah/wiki/MVC , but even so when trying to access myapp/elmah.axd the page: 404 - File or directory not found. Anyone could help me please? OBS: My IIS Version is 7.5 If helps I'm posting the pertinent section...

Elmah does not work with asp.net mvc

I spent countless hours trying to get Elmah working with asp.net mvc, but can't get it working 100%. Right now all the logging works fine, but the HttpHandlers are all screwy. Everytime I try and log into an admin account I automatically get redirected to Elmahs listings page. It makes no sense because the path for elmah is just elmah.a...

Password-Protecting Elmah.axd file

Hi, I've succesfully set up Elmah in my web project and I can access the crash log at http://www.myserver.com/Elmah.axd . The only question is how to secure this URL so that only my colleagues (as opposed to anonymous users and users who are logged in, but not part of my team) can access it. ASP.NET forms authentication is already se...

ELMAH - Using custom error pages to collecting user feedback

Hey guys I'm looking at using ELMAH for the first time but have a requirement that needs to be met that I'm not sure how to go about achieving... Basically, I am going to configure ELMAH to work under asp.net MVC and get it to log errors to the database when they occur. On top of this I be using customErrors to direct the user to a fri...

Elmah logs error even if there isnt?

Elmah is logging the following even though there is no sign of a problem. if i remove elmah i dont get the exception, what could be wrong? System.ArgumentException : The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Thread(Int32, System.String)...

Determine whether or not ELMAH is enabled?

How can I determine programmatically whether or not ELMAH is enabled? ...

Handle exceptions in web services with Elmah

Hi Is there a way to globally handle exceptions in regular ASP.NET Web Service (asmx) using ELMAH like we do it in ASP.NET web site ? Thanks ...

Elmah and code obfuscation

This is most probably a stupid question, but I'd like to make sure I did not miss anything: Am I right to assume that using Elmah and code obfuscation at the same time does not make much sense since Elmah won't be able to produce any meaningful call stacks? Thanks, Adrian ...

Does this approach to using ELMaH with MVC smell?

I've been looking around for some approaches to using ELMaH with ASP.Net MVC so that I can use the custom error page for all exceptions including 404s. There is no shortage of questions asking how to get the /Shared/Error.aspx working correctly in ASP.Net MVC - either with or without ELMaH. I haven't had a problem with that task, but I...

User field of ELMAH error logs [ASP.NET MVC]

I was able to setup EMLAH to log my ASP.NET MVC Application Errors. But log entries are missing User field. I want to add username that is stored in Session to User field. How can I achieve this? I'm beginner, so sorry if this question is too trivial. Thanks in advance. ...

ELMAH within a themed page error

Hi there, I have a themed page whereby the theme is chosen inside a http module. public void context_PreRequestHandlerExecute(object sender, EventArgs e) { Page p = HttpContext.Current.Handler as Page; if (p != null) { //get theme string theme = GetTheme(HttpContext.Current.Request.Url.Host); Debu...

ELMAH : Include POST request parameters in error report

I want POST parameters passed in the request to be included in the error report. ...

Are ASP.NET Health Monitoring and ELMAH alternatives of each other?

I was going to use ELMAH for our ultimate automatic error logging but recently realized that ASP.NET Health Monitoring does a same work (perhaps). Now I want to know (please) if they are alternatives of each other just like log4net and entlib? ...

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

This question builds on the following question: How to get Elmah working with ASP.NET and IIS 5.1 URL Routing The solution suggested there worked, as long as elmah.axd is off of the root of the site. What if you want to secure the site as blogged here: Securely Implement ELMAH For Plug And Play Error Logging? Moving elmah.axd to /admi...

Using ELMAH and URLRewritingNet Together

I have ELMAH setup on my production server and it has done a fantastic job of letting me know about any niggles - as well as any creative SQL injection! I've decided to introduce URl Rewriting and went for http://www.urlrewriting.net/ in the end. It was nice and easy to setup and it's doing exactly what I want with the customer-facing ...

Why am I getting duplicate exception entries using ELMAH in ASP.NET MVC?

I'm brand new to ELMAH but I've been working with MVC for a little while now. After reading several blogs on the subject I'm pursuing the road of having an ErrorController that handles 404 and unknown-error pages, and making a default route that forwards all unknown paths to the 404 action on that controller. The problem is that ELMAH ...

Custom Elmah YSOD data

I'm using Elmah with ASP.NET and wondering how I would add custom data, such as a session variable, to an unhandled exception email. I've tried several handlers in the Global.asax file but can't seem to find the right one. ...

Use ELMAH to log database errors

I'm using ELMAH to handle the exceptions in my ASP.Net MVC project. I would like to use it to log errors like database connection timeout, query connection timeout and others. Is this possible with ELMAH? ...

ELMAH error logging for Windows Service

We are using ELMAH to log the web application exception which works great!. Also we want to know how to customize ELMAH to log the windows service exception. I am not interested in using another application for logging only windows service exception. Any help would be appreciated. ...

Tracking __EVENTTARGET in ELMAH

Is it possible to use the logs produced by ELMAH to track the __EVENTTARGET it seems that is is never in the logs. I thought it was sent as a header, so assumed the ELMAH would log them. This doesn't seem to be the case. Why might this be? ...