[ 
https://issues.apache.org/jira/browse/LOG4NET-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253762#comment-13253762
 ] 

Dominik Psenner edited comment on LOG4NET-233 at 4/13/12 10:44 PM:
-------------------------------------------------------------------

HttpContext is part of the System.Web namespace, which itself is within the 
System.Web.dll. Unfortunately the .NET Framework 4.0 Client Profile does not 
include the System.Web.dll and thus it doesn't know about HttpContext. There 
are some steps you can take, I'm going to write down two of them:

1) remove all references to System.Web (in which case you will have to remove 
log4net.Plugin.RemoteLoggingServerPlugin) to build it
2) add conditionals that exclude all references when built against the Client 
Profile

In case you do 2) please send us a patch together with the revision we can 
apply it to. The reason why we are able to build it is that we use a buildbot 
which builds it for us against a client profile with all modifications needed 
so that it works (I recall that Stefan did a lot of work there). Please someone 
correct me here if I'm wrong.
                
      was (Author: nachbarslumpi):
    HttpContext is part of the System.Web namespace, which itself is within the 
System.Web.dll. Unfortunately the .NET Framework 4.0 Client Profile does not 
include the System.Web.dll and thus it doesn't know about HttpContext. There 
are some steps you can take, I'm going to write down two of them:

1) remove all references to System.Web (in which case you will have to remove 
log4net.Plugin.RemoteLoggingServerPlugin) to build it
2) add conditionals that exclude all references when built against the Client 
Profile

In case you do 2) please send us a patch together with the revision we can 
apply it to.
                  
> Support .NET 4.0 including Client Profile
> -----------------------------------------
>
>                 Key: LOG4NET-233
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-233
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders, Builds, Core, Documentation, Examples, Other
>    Affects Versions: 1.2.10
>         Environment: Windows XP, Vista, 7 - .Net 4.0
>            Reporter: Daniel McGloin
>             Fix For: 1.2.11
>
>         Attachments: 233b.patch, NET4.patch, log4net-1.2.10-net-4.0.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Please add a release targeting .NET 4.0 (currently in Beta 2).  In addition, 
> to support the .NET 4.0 Client Profile, divide any server-side parts into a 
> separate library set that can be optionally referenced/deployed..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to