Update: 12-19-2016
I have tried to completely uninstall visual studio once again - this time opting to install visual studio 2013 as a temporary work-around... however it seems that I STILL get the error concerning the debugger being "not properly installed". This absolutely confuses me, as you would think that the debugger between the two versions would be different as well.
-------------------------
--Original Post--
This is kind of a two-part issue. The issue originally exists when I code in visual C#, but it seems to affect other languages now too. At this stage of the issue, I started this new project "ExDesign" and have not coded anything yet. I pressed the start button to check the build / debug and sure enough i'm still getting the same issues as below.
The first question is in regards to a build error. when I build my program it gives several warnings and errors about being unable to move or copy the exe file from obj to bin.
Error Unable to copy file "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Error Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Exceeded retry count of 10. Failed. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 9 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 7 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 2 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 10 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 4 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 3 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Unable to delete file "c:\users\<redacted>\documents\visual studio 2015\Projects\ExDesign\ExDesign\bin\Debug\ExDesign.exe". Access to the path 'c:\users\<redacted>\documents\visual studio 2015\Projects\ExDesign\ExDesign\bin\Debug\ExDesign.exe' is denied. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 8 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 6 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
Warning Could not copy "obj\Debug\ExDesign.exe" to "bin\Debug\ExDesign.exe". Beginning retry 5 in 1000ms. The process cannot access the file 'bin\Debug\ExDesign.exe' because it is being used by another process. ExDesign
I've tried to find a similar question to this, but the solutions mentioned in those did not help at all, so i'm hoping this isn't considered a "duplicate post". Also, please consider the fact that the error occurs on a fresh install and fresh project - compared to a work in progress as with other posts.
- Visual Studio - Could not copy the file "obj\Debug\[file].exe" because it was not found
- Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug
- Run Visual Studio Debug. The process cannot access the file, because it is being used by another process
Things i've tried so far:
- Run VS2015 as administrator -- result: no effect
- Disable Avast -- result: no effect
- Ensure program is not running in background already -- result: no effect
- Disable "Visual Studio Hosting Process" -- result: no effect
- Run repair -- result: no effect / takes FOREVER
- Reinstall VS2015 -- result: no effect / takes 6 hours, just shoot me...
- Ensure software is up to date -- result: no effect / already up to date
The second problem is the error message I get when trying to run the debugger. I don't know if this has to do with the first issue or if this is a completely different issue:
Error while trying to run project: Unable to start program 'C:\Users\<redacted>\documents\visual studio 2015\Projects\ExDesign\ExDesign\bin\Debug\Exdesign.exe'
The debugger is not properly installed. Run setup to install or repair the debugger.
Since seing this, I have tried repairing and even reinstalling the entire visual studio application - TWICE. Each time I get the same resulting error. Visual studio worked just fine about 4-5 months ago, so i'm not sure why i'm suddenly getting these issues.
System information:
Windows 10 home x64
8GB ram
1TB disk - ~500GB free