Skip to main content
Participant
February 13, 2023
Question

C# AcroExch.App 80004002 No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERF

  • February 13, 2023
  • 2 replies
  • 3301 views

Using Adobe Acorbat Pro DC v2022.001.20142

I have a C# application which print and merge pdf using Acrobat Pro.

Everything was working fine when I was using Adobe Acrobat XI Pro.

With this new version, I get the following error:  Creating an instance of the COM component with CLSID {85DE1C45-2C66-101B-B02E-04021C009402} from the IClassFactory failed due to the following error: 80004002 No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

 

The code who generate the error is: 

Acrobat.AcroApp gapp = (Acrobat.AcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App"));

 

I've checked the reference of the solution and it's pointing to  C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.tlb

 

Any idea why it generate this error and how can it be fixed?

 

Thanks

 

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
February 13, 2023

Is the running version of Acrobat 32bit or 64bit?

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 13, 2023

32 bits

 

Thom Parker
Community Expert
Community Expert
February 13, 2023

Try creating a new app that connects to the Acrobat IAC. There may be something hanging around in the old build that's using the wrong OLE reference. You could also trying doing this with a different language, such as VBA.

If the new builds works, you'll at least know the IAC is working and have a possible path forward.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 13, 2023

In the preferences of Acrobat I've

  • Disable Protected Mode by going to Edit > Preferences > Security (Enhanced) and deselecting Enable Protected Mode at startup.

     

    Reference again to the tlb file but still get an error which is: "Creating an instance of the COM component with CLSID {85DE1C45-2C66-101B-B02E-04021C009402} from the IClassFactory failed due to the following error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))."