Print Page | Close Window

COM Class factory failed AX version

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1960
Printed Date: 22 Jul 25 at 2:38PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: COM Class factory failed AX version
Posted By: softwaredev
Subject: COM Class factory failed AX version
Date Posted: 15 Sep 11 at 7:30PM

Hello,

Using QuickPDFAX0715.dll, have registered it with the standard (self-register command).
regsvr32 <folder-path>\QUICKPDFAX0715.dll. Get a success saying it was registered fine. I am using an administrator command prompt.

This is on a Windows Server 2008 box. We are using VB.NET to interface with the QuickPDF. 
It fails with the error above on the very first line of AX invocation.
Dim QP As New QuickPDFAX0715.PDFLibrary

Error message
Retrieving the COM class factory for component with \CLSID {5208D6D2-F132-4861-8E67-7BB544F9A71E} failed due to the following error: 80040154.

What am I missing? Bit confused even after registering the AX it is telling me its not registered.

Please help.




Replies:
Posted By: Rowan
Date Posted: 15 Sep 11 at 7:56PM
Have you previously been using a different version of the library in this project? This error message is usually due to an old reference to the ActiveX still being in the project settings.

Try deleting the Interop.QuicPDF, etc files from the bin or release folders and remove any references to Quick PDF Library from the project settings and then add the reference again and try compiling.


Posted By: softwaredev
Date Posted: 15 Sep 11 at 8:38PM

There were no old version references of any other quick pdf products in the project. So I removed the reference to the existing AX component and redid it. Redeployed but now got different error .... System.BadFormatImageException. As per google search this happens if .NET exes are compiled to target 'Any CPU'. Changed the target to 'x86' and it works fine now.

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk