无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用

编程入门 行业动态 更新时间:2024-10-20 16:39:36
本文介绍了无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚购买了一台新的开发机器,并已获取我们正在研究的项目的源代码的最新版本,但是当我尝试对其进行调试时,出现以下错误:

I have just bought a new development machine and have taken the latest version of the source code of a project we are working on but when I try to debug it I get the following error:

Could not load file or assembly 'Business' or one of its dependencies. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

业务是解决方案中的类库项目,因此不常见

"Business" is a class library project in the solution so it's unusual that it cannot load this assembly.

今天早上我花了很多时间仔细检查两个项目中的程序集引用是否针对相同的版本,并且它们

I've spent quite a big of time this morning double checking that the assembly references in both projects are targeting the same versions and they are.

推荐答案

新计算机已安装了Panda Anvirus Free版本。尽管它没有报告任何错误,但是它正在干扰调试会话。一旦禁用,该应用程序便开始工作。

The new machine had Panda Anvirus Free version installed. Although no errors were reported by it, it was interfering with the debug session. Once it was disabled the application started to work.

一旦Panda AV被卸载,问题就不复存在了。希望这对遇到相同问题的其他人有所帮助!

Once Panda AV was uninstalled the problem was no more. Hope this helps someone else that encounters the same issue!

更多推荐

无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用

本文发布于:2023-11-10 22:15:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1576606.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   因为它   该文件   或其   无法访问

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!