Error accessing error while creating a solution in Visual Studio 2005

I get the following error in Visual Studio 2005 when building a build:

Error 9 Unable to register assembly "E: \ CSharp \ Project \ Some.Assembly.dll" - access is denied. Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) project

This only happens intermittently and goes away if I restart the IDE, but it is incredibly annoying and I would like to stop it if I can. I checked the assembly itself and it is not read-only, so I don’t know why Visul Studio gets the lock. I am working in debug mode.

I looked at google but cannot find anything but "restart VS". Does anyone have any suggestions on how I can solve this unpleasant problem?

+4
source share
2 answers

It looks like you have a DLL that blocks from time to time, preventing VS from rewriting / blocking. Have you tried using tools like Process Explorer ( http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx ), or Unlocker ( http://www.emptyloop.com/unlocker/ ) to find out what blocks a dll? Unlocker in particular has saved me many times.

As noted in the comments below (Thanks Jeff ), you can also kill a separate lock from Process Explorer.

+4
source

I get something like this, I thought that I would add this link for everyone who gets here from Google: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ba9d67b3-9d14-4a2a- ac5a-91441032ded4

0
source

Source: https://habr.com/ru/post/1276797/


All Articles