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

6

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.

asp.net-mvc
.net-4.5
azure-cloud-services
asked on Stack Overflow Sep 5, 2015 by John Mc

1 Answer

16

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!

answered on Stack Overflow Sep 5, 2015 by John Mc

User contributions licensed under CC BY-SA 3.0