A friend of mine asked me how to solve the “ContextSwitchDeadLock” exception problem, every time he has his C# application run, it throws the below exception and causes the program crash.
Here is the solution:
In your Visual Studio, click on “Debug” from the main menu
then Click on the “+” sign to extend the “Managed Debugging Assistants“
Uncheck the check box on “ContextSwitchDeadLock” so that it will not throw the exception about the Dead Lock anymore.
Hope you find it useful.