c# - 不能再调试我的程序

标签 c# mysql winforms compiler-errors

当我在 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/

相关文章:

c# - 分配水龙头到网格

c# - 有没有一种聪明的方法来动态调用依赖于类型的扩展方法?

c# - 产生相同数据类型的另一个 Enumerable 的返回结果

mysql - 多次查询同一个表但在不同的列中mysql

php - 在 PHP for 循环中运行 N 次存储过程是否不好?

c# - 我可以在 LINQ to Entities 查询中使用 CAST 吗?

mysql 在文本列中搜索单词,按 #world matched 排序

c# - 免费的 WinForms 图像编辑器控件

c# - 在自定义控件中隐藏不需要的属性

c# - 使用自定义 ImageListView 控件后出现表单收缩问题