[ https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791239#comment-13791239 ]
Thomas Meum commented on LOG4NET-398: ------------------------------------- It is thown on the line with Request.Url. No, I am not running on the Compact Framework. Here is the stacktrace: {code} at Microsoft.VisualStudio.WebHost.Connection.get_LocalIP() at Microsoft.VisualStudio.WebHost.Request.GetLocalAddress() at Microsoft.VisualStudio.WebHost.Request.GetServerName() at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) at System.Web.HttpRequest.get_Url() at WebApplication2.WebForm1.Page_Load(Object sender, EventArgs e) in c:\users\meum\documents\visual studio 2010\Projects\WebApplication2\WebApplication2\WebForm1.aspx.cs:line 15 at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) {code} > 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)