Fix the 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity.dll
41
votes
Volker von Einem
shared this idea
completed
·
AdminGrigori Melnik (Producer)
(Senior Program Manager, Microsoft Enterprise Library)
responded
Fixed in the Aug 2012 update of Unity. Get it via NuGet. http://bit.ly/Ot1yLj
-
Gerrit Menkveld commented
A perfect solution can be found in stackoverflow: http://stackoverflow.com/questions/2873767/can-unity-be-made-to-not-throw-synchronizationlockexception-all-the-time
Simple and effective!
-
Marcel Veldhuizen commented
The better stackoverflow question to link at would be http://stackoverflow.com/questions/2873767/can-unity-be-made-to-not-throw-synchronizationlockexception-all-the-time
The workaround offered there seems pretty simple. The only reason it's so much code is because the fix has to be injected using extensions.