我知道这已经讨论了很多时间,但他们的回答并没有帮助我。Visual Studio说“它正在被另一个进程使用” - ProcessExplorer说“没有处理”
当我建立它提供了以下错误的项目:
The process cannot access the file '..\MyProjectFolder\obj\x86\Release\MyProject.exe' because it is being used by another process.
我试过到目前为止:
- 关闭Visual Studio 2010中,并再次打开它。
- 打开任务管理器(如管理员),没有运行进程,名为“MyProject.exe”
- 运行Sysinternals的\ handles.exe(如再次管理员),有具有手柄来MyProject.exe没有应用。 (奇怪!)
- 运行SysInternals \ ProcessExplorer.exe,搜索进程名称,没有句柄。 (怎么回事!)
- 杀死explorer.exe,然后重新运行。没有运气。
- 试图从命令行手动删除文件。相同的错误(被另一个进程使用)。
- 退出并登录,仍是同样的问题。
- 重新启动机器,是的它的工作原理,但不是所需的答案:)。
我真的很想知道背后的原因。这是我第二次遇到这种情况,我不想再次重新启动机器。
不管怎样,ProcessExplorer.exe或handles.exe怎么都不显示句柄!我失去了信心..
非常类似的东西在下面的链接(!甚至更多)进行了讨论,但没有他们的帮助我(或者我找不到合适的人):
- Run Visual Studio Debug. The process cannot access the file, because it is being used by another process
- Visual Studio - Cannot build a simple project more than once
- VisualStudio2010 Debugging - The process cannot access the file ... because it is being used by another process
对于进程资源管理器,请确保您这样运行的:“procexp/E”可以看到所有的手柄和DLL文件(并确保您有最新版本)。 –
谢谢你的提示,依然如此。 – Feyyaz
也许一些反病毒检查后面的东西? –