Frequently I am getting this error. Even i have killed the process so many times. Please help.
5 Answers
Try start visual studio with administrator privilege

- 91
- 10
-
-
Using administrator privilege can build successfully most of the time.Only something the error will prompt again. – Json May 23 '17 at 15:03
-
This usually happens when a file is in use by another process that runs with different user.
Try deleting these files manually (go to the debug folder and delete) and then build your solution.
Make sure you are not debugging while deleting.

- 1,278
- 9
- 18
I experienced this on a project created in VS2010 and then opening it in VS2015. When I went back to VS2010 two things had changed:
- In the project settings the debug workspace folder had been cleared.
- The "use Visual Studio host" button had been unchecked.
I set the workspace to my debug folder and checked the "use host" checkbox and VS2010 was able to properly debug/code/debug multiple times again.

- 373
- 5
- 16
I had the same problem, the solution was: Uncheck the "sign the ClickOnce manifests." in Procject Properties/Signing. Some days I checked it to the test and I forgot to uncheck.

- 1
- 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"

- 4,219
- 3
- 35
- 45
-
It is only able to run once, after that will get another unable to delete error. – Json May 23 '17 at 14:35