title: Retrieving the COM class factory for component with CLSID {xxxx} failed due to the following error: 80040154
body: <p>I'm upgrading a VB6 app to VB.Net. It used the "Adobe Acrobat 10.0 Type Library". However, when using with the .Net project I'm getting the error in the title. 
  I created a small test project. The exception is thrown when I try to instantiate an AcroPDDoc, on the following line:</p>
  
  <pre><code>Dim acroApp As Acrobat.AcroPDDoc = New Acrobat.AcroPDDoc()
  </code></pre>
  
  <p>The adobe library resides at <code>C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.dll</code>. When added, it puts a dll called "Interop.Acrobat.dll" into the project's obj folder.
  I've tried running RegSvr32.exe on both dlls, as I saw advised somewhere, but recieved an error along the lines of </p>
  
  <blockquote>
    <p>dll was loaded but the call to DllRegisterServer failed with error code 0x80004005</p>
  </blockquote>
  
  <p>I haven't been able to find a great deal on that error code.</p>
  
  <p>I've also tried <a href="https://stackoverflow.com/questions/4021796/error-80040154-class-not-registered-exception-when-initializing-vcprojectengin#4021887">chainging the platform target to x86 from 'any cpu'</a>. </p>
  
  <p>EDIT - 
  I've experienced the same problem on both 32 and 64 bit editions of windows 7. </p>
  
  <p>In win 7 64, I entered the following:</p>
  
  <blockquote>
    <p>C:\Windows\SysWOW64> regsvr32 "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.dll"</p>
  </blockquote>
  
  <p>received the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/g4rMD.png" alt="RegSvr32 error - 64 bit win7"></p>
  
  <p>In win 7 32, entered the following:</p>
  
  <blockquote>
    <p>C:\Windows\system32> regsvr32 "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.dll"</p>
  </blockquote>
  
  <p>recieved the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/kBjAa.png" alt="RegSvr32 error - 32 bit win7"></p>
  
  <p>EDIT 2 - 
  As per Raymond Chen's suggestion, I took another pass at the Adobe site. I found a couple of threads <a href="http://forums.adobe.com/thread/393569" rel="nofollow noreferrer">here</a>, <a href="http://forums.adobe.com/thread/753819" rel="nofollow noreferrer">here</a>, and another question on <a href="https://stackoverflow.com/questions/2063111/visual-c-sharp-express-edition-cant-get-acrobat-pdf-reader-to-work">stackoverflow</a>. The former two links don't refer specifically to .NET, but from them, it seems as though the full version of Acrobat Reader must be installed for these interop classes to work/for the dll in question be registered. I'll check tomorrow, but I have a strong suspicion that the customer's environment may include full versions of Acrobat Reader.
  To all who answered, thanks for your time.</p>
  
  <p>EDIT 3 - Got my hands on the full version of Acrobat, installed and, lo and behold, everything's dandy!</p>