Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Saturday, February 6, 2016

Unable to copy file "obj\Debug\Project.exe" to "bin\Debug\Project.exe". The process cannot access the file "bin\Debug\Project.exe" because it is being used by another process.


Problem
Unable to copy file "obj\Debug\*.exe" to "bin\Debug\*.exe". The process cannot access the file "bin\Debug\*.exe" because it is being used by another process.


The reason behind this error is Visual Studio locks the file.

if you close your solution and reopen it your project build successfully without error.
But this is not a preferable solution  all the time.

Below is one suggestion to resolve this problem

When the problem occurs, just change the building configuration at the top (if in “Release” to “Debug” and vice versa), build and then change back to previous configuration and build again.

Hope this will help you.

0 comments:

Post a Comment