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 573EF10786 for ; Thu, 10 Oct 2013 06:36:47 +0000 (UTC) Received: (qmail 48512 invoked by uid 500); 10 Oct 2013 06:36:44 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 48373 invoked by uid 500); 10 Oct 2013 06:36:44 -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 48356 invoked by uid 99); 10 Oct 2013 06:36:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 06:36:43 +0000 Date: Thu, 10 Oct 2013 06:36:43 +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=13791242#comment-13791242 ] Dominik Psenner commented on LOG4NET-398: ----------------------------------------- I can't see a log4net namespace in the stacktrace. Are you sure this exception happens in the logging framework? > 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)