I have a solution that was originally created using VS 2008. I have quite a few unit tests that all passed when ran in VS 2008.
I opened this solution in VS 2010 and converted it using the wizard.
The solution built just fine, it runs just fine, BUT now all tests that
access the db fail. I get the same error on every test (below).
runtime has encountered a fatal error. The address of the error was at
0x5b3b5ad7, on thread 0x19a4. The error code is 0xc0000005. This error
may be a bug in the CLR or in the unsafe or non-verifiable portions of
user code. Common sources of this bug include user marshaling errors for
COM-interop or PInvoke, which may corrupt the stack."
In test classes that use ClassInitialize() and ClassCleanup() methods,
all the tests fail. All tests fail with the same error, "The agent
process was stopped while the test was running." Tests in test classes that do not utilize ClassInitialize() and ClassCleanup() (these tests do not hit the database) all pass.
When this was a
VS2008 project all 153 tests passed. No changes have been made to these
tests, other than converting the project to a VS2010 project.
I've been playing around with one test class. I commented out the
ClassInitialize() and ClassCleanup() methods. I rewrote one test
View Complete Post