views:

2029

answers:

5

I've thrown together some code to tinker with the new .Net 4.0/VS 2010 pieces, but I can't seem to find a build of my logging framework of choice (log4net) for 4.0, and I'm getting reference errors with the 2.0 version. Is there a 4.0 version available somewhere? I'm not asking for new features, just a version that's already been rebuilt against the new assemblies. Anyone know where I can find a build of 1.2.10 built for the 4.0 framework?

+1  A: 

See the following entry.

Laurent Etiemble
+6  A: 

log4net has a known issue of referencing a System.Web component which is not part of the .NET Framework 4 Client Profile and the VS2010 by default sets project target to be the lightweighted Client Profile. The solution is to change the target to .NET Framework 4:

Right click project -> properties -> Application. Change:

 .NET Framework 4 Client Profile

to be:

 .NET Framework 4

... and that should work, i.e. you can use log4net again...

veljkoz
A: 

I rebuilt log4net 1.2.10 agaist .NET 4.0. When I try to configure it in code I am getting security exception. If I use log4net built for 2.0 in my .NET 4.0 app - all look good.

Any Ideas?

This isn't a forum - you'll need to post this as a new question, not an answer to an existing question.
PatrickJ
A: 

Take a look at the following post: http://tseonet.blogspot.com/2010/07/making-log4net-run-on-net-40.html. Maybe this can help you!

Tjeez
A: 

I wrote a detailed description and steps to solve this on http://fouad.laplacesoftware.com

Laplace