title: error while trying to open a Word application in C#
body: <p>i am getting the following error while trying to open a Microsoft word document from within a c# VS.NET 2010 windows forms application. </p>
  
  <p>"Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."</p>
  
  <p>I am using a Windows 7 64 bit OS.</p>
  
  <p>I have added the Microsoft.Office.Interop.Word in the project > references</p>
  
  <p>i have set the Build platform to target x86 enviroment</p>
  
  <pre><code>using Word = Microsoft.Office.Interop.Word;
  var wordApp = new Word.Application() {Visible = true}; &lt;-- ERROR
  </code></pre>
  
  <p>What am I doing wrong?</p>