Tuesday, May 26, 2009

The process cannot access the file because it is being used by another process

Some times you get error "The process cannot access the file because it is being used by another process" when building a project in Visual Studio 2005.

We can resolve this by temporarly renaming the .pdb files, and build the project. Later delete the renamed file.