Page 1 of 1

Error Using COM in .NET program

Posted: Wed May 11, 2011 2:41 pm
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.

Re: Error Using COM in .NET program

Posted: Wed May 11, 2011 3:11 pm
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

Re: Error Using COM in .NET program

Posted: Wed May 11, 2011 3:49 pm
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

Re: Error Using COM in .NET program

Posted: Thu May 12, 2011 12:14 pm
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 :
http://www.tracker-software.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

Re: Error Using COM in .NET program

Posted: Thu May 12, 2011 3:36 pm
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

Re: Error Using COM in .NET program

Posted: Thu May 12, 2011 4:09 pm
by Tracker Supp-Stefan
Glad to hear you sorted this one out wesallen!

Cheers,
Stefan

Re: Error Using COM in .NET program

Posted: Thu May 12, 2011 7:26 pm
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 :-)