I've run into this in the past and as Sam has suggested, restarting VS seems to work, though not what you're looking for.
However, there is a thread on the MSDN forums, "Unable to copy from obj\debug to bin\debug", which provides a couple of suggestions:
Option 1
Create a pre-build action in your
project by going to project properties
(right-click on the project in the
solution explorer, and select the
Properties option), select the Build
Events tab. Add this code:
if exist "$(TargetPath).locked" del
"$(TargetPath).locked" if not exist
"$(TargetPath).locked" move
"$(TargetPath)" "$(TargetPath).locked"
This copies the file to a different
name, and allows the build to continue
successfully.
With a subsequent follow up of:
But one small improvement is
neccessary to let the hack work also
if the build is run from scratch, e.g.
after clean:
if exist "$(TargetPath).locked" del
"$(TargetPath).locked" if not exist
"$(TargetPath).locked" if exist
"$(TargetPath)" move "$(TargetPath)"
"$(TargetPath).locked"
Option 2
I had a similar problem and I solved
it excluding from the project in
[Source Repository of Choice] the
folders bin and obj.
HTH's