Visual Studio error VSP1014
I’m writing unit tests for a large solution which consists of a bunch of projects. Some small, calculation, utility type projects are in managed C++ and the rest are C#. When I run my tests under the GUI I get this error on one of the C++ DLLs:
Instrumentation error while processing file Util.dll: Error VSP1014 : Unable to open file 'F:\src\Util\bin\Debug\Util.dll' for writing..
Now, under Team Suite 2005, this seems to be a well-known problem but that Knowledgebase article does not describe what is wrong here. For one thing, the error message is different even though the error number is the same. For two, this is my DLL so I have the PDB file for it. And for three, if I hop to the command line immediately after this error and invoke mstest.exe manually, the test runs fine. I don’t get the same error and code coverage is generated.
For now I think all code coverage will have to be done on the command line, as I’m completely stymied now. I can’t see any way around this.






Recent Comments