Upgrade from .Net 4.5.2 to .Net 7
Posted: Thu Jan 04, 2024 8:05 pm
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.
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.