title: Access denied error when building solution in Visual Studio 2005
body: <p>I get the following error in Visual Studio 2005 when doing a build:</p>
  
  <blockquote>
    <p>Error 9   Cannot register assembly
    "E:\CSharp\project\Some.Assembly.dll"
    - access denied. Access is denied. (Exception from HRESULT: 0x80070005
    (E_ACCESSDENIED)) project</p>
  </blockquote>
  
  <p>It happens only intermittantly and does go away if I restart the IDE, however this is incredibly annoying and I would like to put a stop to it happening permanently, if I can. I've checked the assembly itself, and it is not set to read only, so I've no idea why Visul Studio is getting a lock on it. I am working in Debug mode.</p>
  
  <p>I've had a look around google, but can't seem to find anything other than "restart VS". Does anyone have any suggestions as to how I can resolve this annoying problem?</p>