title: Microsoft.Office.Interop.Word Retrieving the COM class factory for component with CLSID failed due to the following error: Access is denied
body: <p>While trying to create a Instance of   new Microsoft.Office.Interop.Word.Application I am getting error as below.</p>
  
  <pre><code>try
  {
      Console.WriteLine("Begin.");
      Application wordApp = new Microsoft.Office.Interop.Word.Application { Visible = false };
      Console.ReadLine();
  }
  </code></pre>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID
    {000209FF-0000-0000-C000-000000000046} failed due to the following
    error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005
    (E_ACCESSDENIED)).</p>
  </blockquote>
  
  <p>I have tried the solutions suggested in <a href="https://www.codeproject.com/Questions/274286/microsoft-office-interop-error" rel="nofollow noreferrer">Microsoft Office Interop Error</a> also noticed StackOverflow <a href="https://stackoverflow.com/questions/42247471/microsoft-office-interop-excel-application-access-denied-after-publish">question</a> with no ans's.</p>
  
  <p>I have Installed the <a href="https://www.microsoft.com/en-in/download/details.aspx?id=3508" rel="nofollow noreferrer">Primary Interop Assemblies Redistributable</a> and <a href="https://www.microsoft.com/en-in/download/details.aspx?id=48217" rel="nofollow noreferrer">Visual Studio 2010 Tools for Office Runtime</a> (vstor_redist).</p>