I am unable to start my unit tests in debug mode in Visual Studio 2010 running on a Windows 7 x64 machine. If I run the unit tests in debug mode I get a BadImageFormatException:
Could not load file or assembly 'dbghelp.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
at System.Reflection.AssemblyName.nGetFileInformation(String s) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
I have no problem running the debugger with other projects and my colleague runs the debugger without problems on a similar setup.
Most systems are littered with dbghelp.dll's and it looks like the unit test framework tries to load a bad one.
How can I see which dbghelp.dll it tries to load?
How do I work around this problem?