title: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID
body: <p>I am replacing MS Word MergeFields with data from SQL Server in a simple asp.net c# application and it works fine locally but when i publish it <em>often</em> i get the following:</p>
  
  <pre><code>System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005.
  </code></pre>
  
  <p>I tried giving both <code>IIS_IUSRS</code> and <code>NETWORK SERVICE</code> full access, and also set the identity to interactive in the DCOM config but it didn't fix anything.</p>