[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-dev
Subject:    [jira] [Comment Edited] (LOG4NET-398) SerializationException after setting a LogicalThreadContext pr
From:       "Dominik Psenner (JIRA)" <jira () apache ! org>
Date:       2013-10-22 17:05:46
Message-ID: JIRA.12673082.1381344049766.104949.1382461546853 () arcas
[Download RAW message or body]


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

Dominik Psenner edited comment on LOG4NET-398 at 10/22/13 5:05 PM:
-------------------------------------------------------------------

Looks like some environments (i.e. Visual Studio 2010) are not smart enough to load \
referenced local assemblies. Placing these local assemblies in the right spot (nearby \
the executable), installing them into the GAC or maybe even working around this with \
the [AppDomain.AssemblyResolve|http://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx] \
event should work around this issue.


was (Author: nachbarslumpi):
Looks like some environments (i.e. Visual Studio 2010) are not smart enough to load \
referenced local assemblies. Placing these local assemblies in the right spot (nearby \
the executable), installing them into the GAC or maybe working around this with the \
[AppDomain.AssemblyResolve|http://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx] \
should solve the issue.

> SerializationException after setting a LogicalThreadContext property
> --------------------------------------------------------------------
> 
> Key: LOG4NET-398
> URL: https://issues.apache.org/jira/browse/LOG4NET-398
> Project: Log4net
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.12
> Environment: Visual Studio 2010
> Reporter: Thomas Meum
> 
> I have found that accessing Page.Request.Url after setting a LogicalThreadContext \
> property causes a SerializationException with the following message: Type is not \
> resolved for member 'log4net.Util.PropertiesDictionary,log4net, Version=1.2.12.0, \
> Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'. I have been able to reproduce \
> the problem on two different machines with the following steps: 1. Create a new \
> ASP.NET Empty Web Application 2. Add a reference to log4net.dll
> 3. Add a new Web Form
> 4. Add the following code to Page_Load:
> log4net.LogicalThreadContext.Properties["Test"] = 1;
> Uri url = Request.Url;
> 5. Hit F5



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic