问题描述
我刚刚购买了一台新的开发机器,并使用了我们正在开发的项目的最新版本的源代码,但是当我尝试调试它时,我收到以下错误:
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"是解决方案中的一个类库项目,所以它无法加载这个程序集是不寻常的.
"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!
这篇关于无法加载文件或程序集 '' 或其依赖项之一.该进程无法访问该文件,因为它正被另一个进程使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!