Visual studio 2015 debugger “not installed properl

2019-03-06 05:05发布

问题:

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

回答1:

It seems that more problems crept up on my computer, and more than just Visual Studio ended up failing. This prompted me to do a system repair using an all-in-one repair utility from www.tweaking.com. This took a considerable amount of time to run, however, everything works perfectly now.

I still don't know what the initial cause of this issue was (corrupt registry, corrupt system files, etc), but I am just happy that everything works now.

If you use the above utility, be sure to make use of the BACKUP tab to make a backup of your registry and create a restore point BEFORE running the repairs. This is a last-resort utility meant to be tried before having to resort to reinstalling the operating system.



回答2:

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.

Please check that whether it is related to the configuration manager settings like this document:

http://www.bytemedev.com/how-to-fix-visual-studio-error-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process/

Many community members resolved this issue using the above steps.

Just take a backup for your project, close the VS, and then delete bin and obj folders in your project path, and then re-open this project, clean and rebuild it, check it again. Please make sure that the project output path is matched to your project folder locally in your project property.

Error while trying to run project: Unable to start program 'C:\Users\\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.

For this issue, do you debug your app locally or remotely? This document shared three possible reasons which could generate this issue, if possible, you could refer to it here:

http://digioz.blogspot.sg/2007/08/debugger-is-not-properly-installed-run.html

If still no help, please also test it in other VS machine. And compare the VS version with yours if it works well in other machine. At least, we have to make sure that it is the latest VS2015 version with update 3.