Monday, December 27, 2010

Making Log4Net Work with the .NET Client Profile

Hi,

I was trying to call log4net standard dll in one of my WCF service library project.
But oops! The smart language compiler on VS IDE 2010 was NOT allowing me to write even “using log4net;” on the namespace declaration area.
I knew the solution that to change target framework from .net 4.0 client profile to .net 4.0 on the properties page of the project.
But as you know that client profile is supposed to make your binaries thinner by removing unused references and hence to make faster your app/service.

So I googled to customize my log4net and here I got the solution.

Please read the link given below, it worth reading.

http://www.codeproject.com/KB/dotnet/Log4NetWithClient.aspx

Best Regards,
Sudhir K. Dwivedi

Followers