Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

System.InvalidCastException: Unable to cast COM object of type 'Acrobat.AcroAppClass' to interface type 'Acrobat.CAcroApp'

$
0
0

Hi,

 

We are using acrobat in our project to procees PDF files.

 

In one of our client machine, we are getting bellow exception while creating 'Acrobat.AcroAppClass' object.

 

"System.InvalidCastException: Unable to cast COM object of type 'Acrobat.AcroAppClass' to interface type 'Acrobat.CAcroApp'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{9B4CD3E6-4981-101B-9CA8-9240CE2738AE}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))."

 

Code we used:

--------------------

CAcroApp objApp = new AcroAppClass();

.......

objApp.Exit();

 

AcroAPPClass is derived from CAroApp interface, so type casting is correct only, but we are getting issues.

 

This issue is happening in particular machine only.

 

Acrobat version in client machine:

Acrobat.png

 

Please help us to solve the issue.


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>