Error Using COM in .NET program

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
wesallen
User
Posts: 19
Joined: Wed Oct 03, 2007 9:15 pm
Location: Georgia

Error Using COM in .NET program

Post by wesallen »

I have a vb.net WinForms program and we use your PDF-XChange PRO SDK Default Version: 4.0176. On our development and test machines the program functions as it should. However, at our clients site the program will error out with the following message. Retrieving the COM class factory for component with CLSID {217974DB-6777-4A9F-90A7-AA5EBA834BA2} failed due to the following error: 80040154. The client is running Windows 7 workstations and we have tested on Windows XP, Windows Vista and Windows 7 and can not get it to fail.

The 2 COM components we use in the program are Interop.PXCComLib.dll and Interop.PDFXCviewAxLib.dll.

Any information you can give me about this issue will be greatly appreciated.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Error Using COM in .NET program

Post by Tracker Supp-Stefan »

Hello wesallen,

Just to make sure - you are including the dlls needed with your application right? They are in the same folder as your executable on in an appropriate recognized path?

Also check whether the user is not using a x64 bit windows, and make sure you are supplying the proper version of the dlls for 64 bit machines.

Best,
Stefan
wesallen
User
Posts: 19
Joined: Wed Oct 03, 2007 9:15 pm
Location: Georgia

Re: Error Using COM in .NET program

Post by wesallen »

All dlls are in the folder with the executables on a correct and recognized path.

All users are on Windows 7 32-bit.

Thanks
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Error Using COM in .NET program

Post by Corwin - Tracker Sup »

Hi,

Please make sure, that you have installed appropriate version of PXC Printer Driver at client computer.

One easy test would be to install the end user release and try the options in the demo version to ensure all installed correctly - specifically the MS Office toolbar integration as this is using the COM components in the same way the SDK does and is a good test to perform to ensure there are no local issues (e.g. Security/AV blocking access etc)

You can download this from this link :
https://www.pdf-xchange.com/PDFX4.zip

Assuming this works .. whilst this is still installed - ask your client to re-try your app and advise.

Also - its not 100% clear what functionality specifically is failing from your post - what is your client trying to do specifcally when the failure happens ?

Thanks
wesallen
User
Posts: 19
Joined: Wed Oct 03, 2007 9:15 pm
Location: Georgia

Re: Error Using COM in .NET program

Post by wesallen »

Installing the printer driver fixed the problem.

The user was not doing anything associated with changing/printing/opening a PDF. This error happens when the form that references the COM object is loading.

Thanks
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Error Using COM in .NET program

Post by Tracker Supp-Stefan »

Glad to hear you sorted this one out wesallen!

Cheers,
Stefan
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Error Using COM in .NET program

Post by John - Tracker Supp »

Whilst it is good to hear you sorted it out - it does sound like the Ax installation/registration failed on this machine and you may want to investigate why this was so just in case it happens at other sites.

We always recommend you use the distribution installers we provide for your clients installs - if you are not using these - you may wish to consider doing so and if you are - we should jointly try and understand why at these specific site(s) the install - appears at least - to have failed...

Just a thought :-)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Post Reply