Could not copy “obj\debug\.exe” to “bin\debug\.exe”. Exceeded retry count of 10. Failed.

In this post, we will discuss how to resolve the below issue which comes while building an azure webjob (which was created using a console application) using visual studio 2015. The error comes when I try to build a webjob that we have created using a console application in visual studio 2015. The full error looks like the below:

Could not copy “obj\Debug\SiteCreation.exe” to “bin\Debug\SiteCreation.exe”. Exceeded retry count of 10. Failed.

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

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

I deleted the Debug folder and then try rebuilding the application, it started working fine.

This is how I have fixed the error, Could not copy “obj\debug.exe” to “bin\debug.exe”. Exceeded retry count of 10. Failed.

You may like the following tutorials:

>