当我在 C#.NET 中处理一个项目时,我遇到了电源故障,现在我无法调试我的程序。这些是发生的错误。
Error 1 Unable to copy file "C:\Users\Nihal\Documents\Visual Studio 2005\Projects\InfortecManagementSystem\InfortecManagementSystem\InfortecInternational.mdf" to "bin\Debug\InfortecInternational.mdf". The process cannot access the file 'C:\Users\Nihal\Documents\Visual Studio 2005\Projects\InfortecManagementSystem\InfortecManagementSystem\InfortecInternational.mdf' because it is being used by another process. InfortecManagementSystem
Error 2 Unable to copy file "C:\Users\Nihal\Documents\Visual Studio 2005\Projects\InfortecManagementSystem\InfortecManagementSystem\InfortecInternational_log.ldf" to "bin\Debug\InfortecInternational_log.ldf". The process cannot access the file 'C:\Users\Nihal\Documents\Visual Studio 2005\Projects\InfortecManagementSystem\InfortecManagementSystem\InfortecInternational_log.ldf' because it is being used by another process. InfortecManagementSystem
如何让它重新工作?
最佳答案
文件被另一个进程锁定。 Handle是一个 Windows/SysInternals 工具,可以帮助解决这个问题。它会告诉您当前正在使用这些文件的进程。
下载句柄,转到命令提示符并键入“handle 'C:\Users\Nihal\Documents\Visual Studio 2005'”。
关于c# - 不能再调试我的程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7232272/