Failed to load file or assembly '' or one of its dependencies. The process cannot access the file because it is being used by another process.

I just bought a new development machine and took the latest version of the source code of the 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 project of a class library in a solution, therefore it is unusual that it cannot load this assembly.

I spent quite a bit of time this morning, checking that the assembly references in both projects are targeting the same versions, and they are.

+6
source share
1 answer

Panda Anvirus Free is installed on the new machine. Although no errors were reported, this interfered with the debugging session. As soon as it was disconnected, the application began to work.

Once Panda AV was removed, there was no longer a problem. Hope this helps someone else who is facing the same problem!

+15
source

All Articles