I've been debugging in VS.NET 2010 without issue. But now cannot build. I get the error:
Unable to copy file [filename] to bin\Debug\[filename]. The process cannot access the file bin\Debug\[filename] because it is being used by another process.
I get this error for six different files. I've restart VS.NET 2010 but still get the error. Without restarting the machine, does anyone know how to resolve this?
There are a bunch of questions on SO related to this, all with suggestions and recommendations for solving the issue. For me, none worked until I found this one.
In short, if it's the System Process locking the file, and you have the Application Experience service stopped, restart it. Seriously.
the exe's you are compiling and debugging are still running even after you stop debugging. Kill those exe's from task manager and then compile your exe's. After this, compiling would work perfectly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With