You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Tiernan OToole <ls...@gmail.com> on 2009/12/01 15:12:55 UTC

.NET 4.0 and Log4Net

Good morning all.

when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error
about Log4Net needing System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com

Re: RE: .NET 4.0 and Log4Net

Posted by Tiernan OToole <ls...@gmail.com>.
I am trying to use the compiled dll from the website in a .net 4.0 app and
on build its fails... will play around a bit more and try get screen
shots...

On Dec 2, 2009 12:19 PM, "Roy Chastain" <Ro...@roychastain.org> wrote:

Well, actually, if you compile with NET_2_0 defined for use with .Net
2.0, it uses System.Net.Mail.

However, the ASPNetTraceAppender does reference the System.Web namespace
for access to the HttpContext class.

In both versions 2.0 and 4.0 of the framework, this class is in
System.Web.dll so there should be no difference from current
development.

----------------------------------------------------------------------
Roy Chastain

-----Original Message----- From: Ron Grabowski [mailto:
rongrabowski@yahoo.com] Sent: Tuesday, D...

RE: .NET 4.0 and Log4Net

Posted by Roy Chastain <Ro...@roychastain.org>.
Well, actually, if you compile with NET_2_0 defined for use with .Net
2.0, it uses System.Net.Mail.

However, the ASPNetTraceAppender does reference the System.Web namespace
for access to the HttpContext class.

In both versions 2.0 and 4.0 of the framework, this class is in
System.Web.dll so there should be no difference from current
development.

----------------------------------------------------------------------
Roy Chastain




-----Original Message-----
From: Ron Grabowski [mailto:rongrabowski@yahoo.com] 
Sent: Tuesday, December 01, 2009 21:26
To: Log4NET User
Subject: Re: .NET 4.0 and Log4Net

Well, its a known issue in the sense that its had that dependency for 8+
years: System.Web.Mail


________________________________

From: Tiernan OToole <ls...@gmail.com>
To: log4net-user@logging.apache.org
Sent: Tue, December 1, 2009 9:12:55 AM
Subject: .NET 4.0 and Log4Net


Good morning all.
 
when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error
about Log4Net needing System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com


Re: .NET 4.0 and Log4Net

Posted by Ron Grabowski <ro...@yahoo.com>.
Well, its a known issue in the sense that its had that dependency for 8+ years: System.Web.Mail



________________________________
From: Tiernan OToole <ls...@gmail.com>
To: log4net-user@logging.apache.org
Sent: Tue, December 1, 2009 9:12:55 AM
Subject: .NET 4.0 and Log4Net


Good morning all.
 
when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error about Log4Net needing System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com