Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a version of ELMAH for .NET 4?

Tags:

.net-4.0

elmah

I'd like to use ELMAH in an ASP.NET MVC 2 application running on .NET 4, but according to the project hosting site on Google code, it only supports .NET 1.1 and 2.0.

Is there a .NET 4 version of ELMAH already, or do I have to download the source and update whatever breaks myself?

like image 675
Tomas Aschan Avatar asked Jul 15 '10 19:07

Tomas Aschan


People also ask

What is Elmah MVC?

ELMAH (Error Logging Modules and Handlers) is a series of HTTP modules and an HTTP handler that may be added to your ASP.NET web applications for the purpose of tracking unhandled exceptions. ELMAH provides access to view these errors by way of a web console, email notifications. It is open-source error logging system.

How do I view Elmah logs?

Build the application, run it in the browser, and navigate to http://www.yoursite.com/elmah.axd. You are prompted to log in before you see the content. After a successful authentication, you see a web page to remotely view the entire log of recorded exceptions.


2 Answers

Elmah works perfectly fine for ASP.NET 4.0.

However, there are a few tricks in getting it setup to work perfectly on an MVC website.

I have recently starting blogging about this topic so be sure to check out my blog series on logging in MVC. The first article covers getting Elmah set up and running for MVC using all the tricks that you can find about it on StackOverflow.

There is a link to downloadable code at the end of the article. Hope that helps.

http://dotnetdarren.wordpress.com/

like image 170
Darren Avatar answered Sep 25 '22 12:09

Darren


I am using .NET 4.0 and I dont about a new version.... but I am using the elmah 1.1 and it works....:)..You may have to change source though to add custom fields or log additional values..which is bit of a pain...but get started here

like image 29
Vishal Avatar answered Sep 22 '22 12:09

Vishal