title: Visual Studio 2010 Build Error - Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
body: <p>Recently we migrated our development environment from VS2008 to VS2010 (Ultimate).</p>
  
  <p>For one solution (for now all C#, .NET Framework 3.5 and ASP.NET 2.0) which contains 6 projects VS auto-upgraded it without any problems.</p>
  
  <p>The solution projects are:</p>
  
  <ol>
  <li>ASP.NET website</li>
  <li>VS2010 Web Deployment project for above site</li>
  <li>Web Services Application</li>
  <li>VS2010 Web Deployment project for above WSA</li>
  <li>A class library.</li>
  <li>Another class library.</li>
  </ol>
  
  <p>However, when we build we have 1 error:</p>
  
  <pre><code>Could not load file or assembly 'ClassLibrary1BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
  </code></pre>
  
  <p>After research I finally tracked this to one entry in the ASP.NET website config:</p>
  
  <p>If I build with this line the problem occurs:</p>
  
  <pre><code>&lt;identity impersonate="true" userName="DOMAIN\user" password="password"/&gt;
  </code></pre>
  
  <p>However, if I comment out and build with the following line (without the supplied credentials) the solution builds fine AND then amend the web.config back to the above (with the credentials) the site runs fine - <em>the credentials only cause a problem for the build</em>.</p>
  
  <pre><code>&lt;identity impersonate="true"/&gt;
  </code></pre>
  
  <p>Now here is the strangest issue - the Web Services Application builds fine with the supplied credentials - the build error ONLY occurs for the ASP.NET website. This all holds true whether the projects are built individually or the solution rebuilt.</p>
  
  <p>Any pointers how I can successfully build with the supplied credentials will be greatly appreciated.</p>