Unable to run COM object

2009-06-08 19:49:59 by savfly

I developed a small utility working fine on my PC. The same application gives the following error on a customer PC (same version of pdfcreator installed):

Unable to cast COM object of type 'PDFCreator.clsPDFCreatorClass' to interface type 'PDFCreator._clsPDFCreator'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2a7ec31f-8694-4518-b2f6-dd987aae8085}' failed due to the following error: interface not supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Cannot understand why... any solution known ?
Thanks Sav


2009-06-09 07:28:07 by Harry B.

savfly,

this error message I had with another self-written COM server on a Windows Vista machine.

(1) If your customer runs Vista, too, please check if the error is gone, when running PDFcreator "As Adminstrator" (not only with admin rights!). If this helps, please post it here!

(2) If it doesn't help: as a workaround I deactivated UAC at that time. After that the program was running fine. Then I activated UAC again and it runs still fine! So my problem was solved, but I don't know why. If you check the above mentioned way (1), it would be a help for me, too.

Perhaps someone with more experience in Vista(?) can explain it.

Best Regards,
Harry B.