title: how to work with Word Document in the C#
body: <p>I have a problem that at first seems to be permission.
  On localhost works just right but when goes to a server error occurs:</p>
  
  <blockquote>
    <p>[UnauthorizedAccessException: Retrieving the COM class factory for
    component with CLSID {000209FF-0000-0000-C000-000000000046} failed due
    to the Following error: 80070005.]</p>
  </blockquote>
  
  <p>I use IIS7<br>
  I gave permission to iis user but to no avail, then I spread "try catch" in the code and found that the error is related to the moment it tries to create an instance of Microsoft.Office.Interop.Word</p>
  
  <p>example</p>
  
  <pre><code>using Word = Microsoft.Office.Interop.Word;
  
  private bool Exemple(SqlDataReader dbReader, string strFilePath)
  { 
      Word.Application oApp = new Word.Application ();   // error here
      ...
      ...
      ...
  }
  </code></pre>
  
  <p>Microsoft.Office.Interop.Word this dll in the Bin folder of the server, does anyone have any idea what might be happening?</p>
  
  <p>Thank you.</p>