views:

542

answers:

1

I am using Unity with Silverlight and Prism 2. On my laptop (running Vista 32) I am seeing the following error in the output window in VS.NET 2008 SP1 - which I think is being caught internally by Unity.

A first chance exception of type 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity

On my desktop machine (running Vista 64) with the same codebase but I am not seeing the same error.

I first discovered that there was a problem on the laptop because the app (that uses Prism 2) I have some events being published and the subscribers are not being notified. The desktop machine is working great with Prism events.

Any idea what could be wrong? Michael

+1  A: 

The way how to turn it off is next:

  • In VS IDE go to Debug\Exceptions menu (or press Ctrl+Alt+E)
  • Uncheck the Thrwon check box beside the "Common Language Runtime exceptions"

As for why it is happening, I guess you already got that :)

Nikola Malovic