title: Office Primary Interop Assemblies not working after installing 2007 compatibility pack
body: <p>I had a C# program that did some Word &amp; Excel automation and it used Office 2003 Primary Interop Assemblies. The way I deployed it was by including the Interops in the bin and I had my program reference it from there as opposed to referencing it from the GAC (not very professional, but it worked fpr years). Recently on 3 machines the office 2007 compatibility pack was installed and now when ever my software trys to invoke Word or excell I get an error that: </p>
  
  <p>Unable to cast COM object of type Microsoft.Office.Interop.Word.ApplicationClass to interface type Microsoft.Office.Interop.Word.Application, This operation failed because the QueryInterface call on the COM component for the the interface with IID {00020970-0000-0000-C000-000000000046} failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))</p>
  
  <p>After some searching I noticed that installing the compatibity pack Word11 and Word12 were both installed in the GAC and the same with Excel.</p>
  
  <p>I attempted to have my program reference the Word11 interop in the GAC and still no help.
  I unstalled the Word12 interop and still no help.
  It seems that installing this seemed to have changed some registry setting or something that my software is confused cannot find the correct library.</p>
  
  <p>Anybody have some ideas?</p>