无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用 [英] Could not load file or assembly '' or one of its dependencies. The process cannot access the file because it is being used by another process

查看:530
本文介绍了无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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!

这篇关于无法加载文件或程序集”或其依赖项之一。该进程无法访问该文件,因为它正在被另一个进程使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆