Retrieving the COM class factory for component with CLSID - Using PDFCreatorLib

-1

I'm working on a web application that is built in a .NET MVC Framework. When testing I've encountered this error. The page converts data into a PDF File.

It's failing on this code.

private static PDFCreatorPilotLib.PDFDocument4 SetUpPDF(string title)
{

    PDFCreatorPilotLib.PDFDocument4 PDF = new PDFCreatorPilotLib.PDFDocument4();
    PDF.SetLicenseData("InsolvencyService", "Z5S9H-9AVVA-F84XV-9LQ4N");
    PDF.SetTitle(title, fontCharset.fcANSI);
    PDF.ProducePDFA = false;
    PDF.Compression = compressionType.coFlate;
    return PDF;
}

The full error is Retrieving the COM class factory for component with CLSID {465FE951-D267-4D90-A019-7994822E137E} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {465FE951-D267-4D90-A019-7994822E137E} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Any ideas?

c#
model-view-controller
asked on Stack Overflow May 18, 2020 by thjef

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0