Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve Error : Could not copy ... Exceeded retry count of 10. Failed. - VS 2017

I am having VS 2017 community edition and I have a console application. Every time I build I am getting this error.

 Error      Could not copy "obj\Debug\ConsoleApp1.exe" to "bin\Debug\ConsoleApp1.exe". Exceeded retry count of 10. Failed.  ConsoleApp1 

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

This is getting on my nerves as I have to close the VS2017 everytime this error appears. It runs only one time then I get this error.

like image 699
Venkat Avatar asked Oct 31 '25 13:10

Venkat


1 Answers

I had the same situation as you
You can view process by using Process Explorer

Follow these step and you will get the result
In my case the application still run in background i have to close it before building again.

enter image description here

like image 158
Huy Avatar answered Nov 02 '25 02:11

Huy