Retrieving COM class factory for component with CLSID {xxxx} failed due to the following error: 80040154

I am updating my VB6 application to VB.Net. He used the "Adobe Acrobat 10.0 Type Library". However, when used with a .Net project, I get a title error. I have created a small test project. The exception is thrown when I try to instantiate AcroPDDoc on the following line:

Dim acroApp As Acrobat.AcroPDDoc = New Acrobat.AcroPDDoc()

      

The adobe library is in C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.dll

. When added, it places a DLL named "Interop.Acrobat.dll" in the obj project folder. I tried to run RegSvr32.exe on both DLLs as I saw somewhere, but got an error along the lines

dll was loaded, but the call to DllRegisterServer ended with error code 0x80004005

I couldn't find much of this error code.

I've also tried dragging the target platform to x86 from "any cpu" .

EDIT - I faced the same issue on both 32 and 64 bit versions of Windows 7.

In win 7 64 I entered the following:

C: \ Windows \ SysWOW64> regsvr32 "C: \ Program Files (x86) \ Adobe \ Reader 10.0 \ Reader \ AcroRd32.dll"

got the following error:

RegSvr32 error - 64 bit win7

In win 7 32 enter the following:

C: \ Windows \ system32> regsvr32 "C: \ Program Files \ Adobe \ Reader 10.0 \ Reader \ AcroRd32.dll"

got the following error:

RegSvr32 error - 32 bit win7

EDIT 2 - As suggested by Raymond Chen, I made another pass on the Adobe site. I found a couple of threads here , here , and another question on this StackOverflow question . The first two links are not specific to .NET, but from them it seems that the full version of Acrobat Reader must be installed for these interop classes to work / for the DLL in question. I'll check it out tomorrow, but I have a strong suspicion that the client environment might include full versions of Acrobat Reader. To everyone who replied, thanks for your time.

EDIT 3 - Got the full version of Acrobat installed and that's it, all dandy!

+3


source to share


1 answer


As noted above, the dll would not allow registering unless the full version of Acrobat was installed on the computer.



0


source







All Articles