[jira] [Commented] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property

2013-10-22 Thread Mike Podonyi (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13801865#comment-13801865
 ] 

Mike Podonyi commented on LOG4NET-398:
--

Hi Dominik/Stefan

I am getting the same issue but in another context.
I am runing a unit test in mstest when i received this error:wantedt to use 
using MSTest

 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)


[jira] [Issue Comment Deleted] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property

2013-10-22 Thread Mike Podonyi (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Podonyi updated LOG4NET-398:
-

Comment: was deleted

(was: Hi Dominik/Stefan

I am getting the same issue but in another context.
I am runing a unit test in mstest when i received this error:wantedt to use 
using MSTest)

 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)


[jira] [Commented] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property

2013-10-22 Thread Mike Podonyi (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13801873#comment-13801873
 ] 

Mike Podonyi commented on LOG4NET-398:
--

I am getting the same issue but NOT in an ASP context.
I am having a service which i unit test.

After adding:
LogicalThreadContext.Properties\[SID]=this.Sid;

I am getting the following issue running my unit test:
-- Run test started --
An exception occurred while invoking executor 'executor://mstestadapter/v1': 
Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net, 
Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.
== Run test finished: 0 run (0:00:07.559) ==

Weird is, when i am running the Unit Test in the Debugger (F5) it works just 
fine. 
It only throws when i don't use the Debugger (Ctrl+F5).

I am using Visual Studio 2012 Update 3 and .Net Framework 4.0. So i don't think 
it is a Visual Studio 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)


[jira] [Comment Edited] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property

2013-10-22 Thread Mike Podonyi (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13801873#comment-13801873
 ] 

Mike Podonyi edited comment on LOG4NET-398 at 10/22/13 2:51 PM:


I am getting the same issue but NOT in an ASP context.
I am having a service which i unit test.

After adding:
LogicalThreadContext.Properties\[SID]=this.Sid;

I am getting the following issue running my unit test:
-- Run test started --
An exception occurred while invoking executor 'executor://mstestadapter/v1': 
Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net, 
Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.
== Run test finished: 0 run (0:00:07.559) ==

I am using Visual Studio 2012 Update 3 and .Net Framework 4.0. So i don't think 
it is a Visual Studio Issue.



was (Author: rudimenter):
I am getting the same issue but NOT in an ASP context.
I am having a service which i unit test.

After adding:
LogicalThreadContext.Properties\[SID]=this.Sid;

I am getting the following issue running my unit test:
-- Run test started --
An exception occurred while invoking executor 'executor://mstestadapter/v1': 
Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net, 
Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.
== Run test finished: 0 run (0:00:07.559) ==

Weird is, when i am running the Unit Test in the Debugger (F5) it works just 
fine. 
It only throws when i don't use the Debugger (Ctrl+F5).

I am using Visual Studio 2012 Update 3 and .Net Framework 4.0. So i don't think 
it is a Visual Studio 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)


[jira] [Commented] (LOG4NET-398) SerializationException after setting a LogicalThreadContext property

2013-10-22 Thread Mike Podonyi (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4NET-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13801966#comment-13801966
 ] 

Mike Podonyi commented on LOG4NET-398:
--

This fixed the issue on my dev machine.
Please tell me that this is not necessary on the production machine because i 
am not allowed to install anything in the GAC there.

 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)