Page 1 of 1

Upgrade from .Net 4.5.2 to .Net 7

Posted: Thu Jan 04, 2024 8:05 pm
by wallmat
We are currently using the version 7.0.326.1 and upgrading our project from 4.5.2 to .NET 7 and started getting an error when initializing.

coreInstance = new PXC_Inst();

Error:
ErrorMesssage: Retrieving the COM class factory for component with CLSID {D37FFAC6-B7ED-441E-B933-19B4E57FCB60} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).
Stack Trace: at System.RuntimeTypeHandle.AllocateComObject(Void* pClassFactory)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

We have registered the DLLs manually as well and still no change. But rolling back to .NET 4.5.2 removes this error. There is a lot of other factors at play as well but I wanted to reach out and see if anyone else encountered this in any versions and found a solution.

Re: Upgrade from .Net 4.5.2 to .Net 7

Posted: Fri Jan 05, 2024 1:55 pm
by Stefan - PDF-XChange
Hello wallmat,

I've asked my colleagues from the dev team to take a look and advise on what can be done!

Kind regards,
Stefan

Re: Upgrade from .Net 4.5.2 to .Net 7

Posted: Fri Jan 05, 2024 2:38 pm
by wallmat
Thank you so much

Upgrade from .Net 4.5.2 to .Net 7

Posted: Fri Jan 05, 2024 3:10 pm
by Stefan - PDF-XChange
:)