DEV Community

baris
baris

Posted on

1 1

Answer: log4net - LogicalThreadContext - and unit test cases

If you are having meaningless errors related to log4net, this answer might save a ton of time for you.

-> Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net...

I ended up doing this to get it working:

put this in the TestCleanup() method:

CallContext.FreeNamedDataSlot("log4net.Util.LogicalThreadContextProperties");

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay