SynchronizationLockException + Logging

Topics: General discussion, Logging Application Block
Nov 12, 2010 at 1:37 PM
Edited Nov 12, 2010 at 1:38 PM

Hi,

I just started with v5 of the enterprise lib and seem to encounter some strange issues. As usually I started with logging. I just added the required references and execute a single line of code: Logger.Write("test");

Nothing special so far. Checking the output I found a quite strange issue; when the code is called the first time and all required libs are loaded there seem to be exceptions...
A first chance exception of type 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity.dll
A first chance exception of type 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity.dll

Since I work with cought exceptions turned on, this is quite annoying. Any idea what it is or how to get rid of it?

Regards

Nov 14, 2010 at 5:59 PM

This is a known issue. Kindly refer to this thread http://entlib.codeplex.com/Thread/View.aspx?ThreadId=214654.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com