Return-Path: X-Original-To: apmail-logging-log4net-dev-archive@www.apache.org Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9BBB1720F for ; Wed, 24 Jun 2015 10:03:05 +0000 (UTC) Received: (qmail 84974 invoked by uid 500); 24 Jun 2015 10:03:05 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 84446 invoked by uid 500); 24 Jun 2015 10:03:04 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 84220 invoked by uid 99); 24 Jun 2015 10:03:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 10:03:04 +0000 Date: Wed, 24 Jun 2015 10:03:04 +0000 (UTC) From: "Dominik Psenner (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14599203#comment-14599203 ] Dominik Psenner commented on LOG4NET-398: ----------------------------------------- You are right, AppDomains shouldn't be able to share information unless the objects are serialized/deserialized. But to me it sounds strange that a dictionary tries to cross into another AppDomain. At first sight, this shouldn't happen at all. Can you work out why this happens? > SerializationException after setting a LogicalThreadContext property > -------------------------------------------------------------------- > > Key: LOG4NET-398 > URL: https://issues.apache.org/jira/browse/LOG4NET-398 > Project: Log4net > Issue Type: Task > Components: Core > Affects Versions: 1.2.12 > Environment: Visual Studio 2010 > Reporter: Thomas Meum > Priority: Minor > Labels: triaged > > 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.3.4#6332)