gpt4 book ai didi

visual-studio - Visual Studio 2015调试器 “not installed properly”和 “process cannot acces file - file in use”生成错误

转载 作者:行者123 更新时间:2023-12-02 10:54:11 25 4
gpt4 key购买 nike

更新:2016年12月19日

我试图再次完全卸载Visual Studio-这次选择安装Visual Studio 2013作为临时解决方法...但是,看来我仍然收到有关调试器“未正确安装”的错误。这绝对使我感到困惑,因为您会认为两个版本之间的调试器也会有所不同。

-------------------------

-原始邮件-

这是一个分为两个部分的问题。当我使用可视C#进行编码时,最初存在此问题,但现在似乎也影响了其他语言。在问题的这个阶段,我开始了这个新项目“ExDesign”,但尚未编写任何代码。我按下开始按钮以检查构建/调试,并确定我仍然遇到如下相同的问题。

第一个问题是关于构建错误。当我构建程序时,它会发出一些警告和错误消息,提示您无法将exe文件从obj移动或复制到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

我试图找到与此类似的问题,但是那些提到的解决方案根本没有帮助,所以我希望这不会被视为“重复的帖子”。另外,请考虑以下事实:与其他帖子进行中的工作相比,该错误发生在全新安装和全新项目上。



到目前为止我尝试过的事情:
  • 以管理员的身份运行VS2015-结果:无效
  • 禁用Avast -结果:无效
  • 确保程序尚未在后台运行-结果:
  • 无效
  • 禁用“Visual Studio托管过程” -结果:无效
  • 运行修复-结果:无效/永久使用
  • 重新安装VS2015 -结果:无效/需要6个小时,只是射击我...
  • 确保软件是最新的-结果:无效/已经是最新的


  • 第二个问题是尝试运行调试器时收到的错误消息。我不知道这是否与第一个问题有关,或者这是一个完全不同的问题:
    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.

    自从意识到这一点以来,我尝试修复甚至重新安装整个Visual Studio应用程序-TWICE。每次我得到相同的结果错误。 Visual Studio大约4-5个月前就可以正常工作,所以我不确定为什么突然遇到这些问题。

    系统信息:

    Windows 10家庭版x64

    8GB内存

    1TB磁盘-约500GB免费

    最佳答案

    看来,我的计算机上出现了更多的问题,而不仅仅是Visual Studio失败了。这促使我使用www.tweaking.com中的多合一修复实用程序进行系统修复。这花费了相当长的时间才能运行,但是现在一切正常。

    我仍然不知道此问题的最初原因是什么(注册表损坏,系统文件损坏等),但我很高兴现在一切正常。

    如果您使用上述实用程序,请确保使用BACKUP选项卡对注册表进行备份,并在运行修复程序之前创建还原点。这是最后手段,必须在重新安装操作系统之前尝试使用。

    关于visual-studio - Visual Studio 2015调试器 “not installed properly”和 “process cannot acces file - file in use”生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41051463/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com