You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Davyd McColl (Jira)" <ji...@apache.org> on 2020/09/14 06:30:00 UTC

[jira] [Closed] (LOG4NET-590) LogicalThreadContext stops UnitTest in Visual Studio

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

Davyd McColl closed LOG4NET-590.
--------------------------------
    Resolution: Fixed

Hi

In a bid to get the machinery all going again, I'm closing out old issues, especially when:
- they are against older versions of log4net ( < 2)
- they have no associated pull request
- they are unlikely to receive attention because they're wishlist material

I'm doing this to try to increase the signal-to-noise ratio so that it's more likely
that issues which can be attended to get the attention they deserve.

I'm not doing this because your contribution isn't important. On the contrary, if
the problem still persists, please raise a new issue -- I'd like to know about it.


> LogicalThreadContext stops UnitTest in Visual Studio
> ----------------------------------------------------
>
>                 Key: LOG4NET-590
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-590
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.8
>            Reporter: Petr B
>            Priority: Critical
>
> Hello,
> I use log4net in my application for logging. In one day unit tests stopped in visual studio. There was error:
> {color:#666666}An exception occurred while invoking executor 'executor://mstestadapter/v2': Unable to find assembly 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.{color}
> {color:#666666}I spend much time to find problem.{color}
> I have in my ctor this:
> {color:#000088}public{color} {color:#660066}Logger{color}{color:#666600}(){color}
> {color:#666600}{{color}
> {color:#000000}log {color}{color:#666600}={color}{color:#000000} log4net{color}{color:#666600}.{color}{color:#660066}LogManager{color}{color:#666600}.{color}{color:#660066}GetLogger{color}{color:#666600}({color}{color:#000088}typeof{color}{color:#666600}({color}{color:#660066}Logger{color}{color:#666600}));{color}
> {color:#000000}log4net{color}{color:#666600}.{color}{color:#660066}LogicalThreadContext{color}{color:#666600}.{color}{color:#660066}Properties{color}{color:#666600}[{color}{color:#008800}"LogRunId"{color}{color:#666600}]{color} {color:#666600}={color} {color:#006666}0{color}{color:#666600};{color} {color:#880000}//get max+1 log from database{color}
> {color:#880000}}
>  
>  When I comment second line unit test works fine. When I change LogicalThreadContext to ThreadContext it works fine. If there is LogicalThreadContext error is shown. Why?
> Example application could be found onĀ {color:#666666}https://1drv.ms/u/s!AtGI8jaUqSfuiNhRtwmmxkr-YhoWPA{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)