tags:

views:

191

answers:

3

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?

A: 

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

Misnomer
A: 

Well it's open source nothing should prevent you from recompiling it using the .NET 4.0 framework.

This link has some information about running pre .NET4 web apps and .NET4 web apps in a server.

EDIT:

Actually you won't need to recompile ELMAH. According to this and this article the In-Process side by side execution should do the trick.

Stephan
I know it's open source, and I was just about to download it when I realized that I don't want to reinvent the wheel. If there already is a .NET 4 port, the SO community would know :P
Tomas Lycken
+1  A: 

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/

Darren