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

▼魔方 西西 提交于 2019-12-01 02:36:10

问题


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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/32412632/could-not-load-file-or-assembly-or-one-of-its-dependencies-the-process-canno

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!