c# - 错误处理超过重试次数 10

标签 c# debugging error-handling

<分区>

错误一:

Error 12 Unable to copy file "obj\Debug\coursework2.exe" to "bin\Debug\coursework2.exe". The process cannot access the file 'bin\Debug\coursework2.exe' because it is being used by another process.

错误 2:

Error 11 Could not copy "obj\Debug\coursework2.exe" to "bin\Debug\coursework2.exe". Exceeded retry count of 10. Failed.

我不断重复这两个错误。请向我解释如何解决这个问题。

最佳答案

我同意@ahmet 的观点,您的可执行文件可能在您尝试构建解决方案时已经在执行。

  1. 打开任务管理器(Ctrl + Shift + Esc)
  2. 查找与您的可执行文件名称 (CourseWorks.exe) 匹配的执行进程或应用程序
  3. 关闭它们
  4. 重试

关于c# - 错误处理超过重试次数 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20944303/

相关文章:

c# - 为什么我不能通过 Resharper Test Runner 单元测试从单元测试中删除 %Program Files% 中的文件?

.net - 如何检测是否已连接调试器*以及*是否已设置或命中断点?

debugging - RUST_BACKTRACE=1 有多少开销?

php - 什么时候在PHP中使用@符号?

php - Syslog : What is the Configuration for Log errors using syslog in my PHP Application

javascript - 如何为缺少的属性正确抛出错误?

c# - 将 cocoapods 与 xamarin 一起使用

c# - 在 C# 中使用减号

c# - 有没有办法从 WCF REST 方法返回不同的类型?

java - 远程调试 : No connection to Wildfly 14 on OpenJDK 11 at port 8787