I am trying to build a VB.NET Windows Forms application in VS 2022 using an ActiveX DLL named CP4DLL that I built many years ago in VB6.
I have included a reference to the DLL in the project and the code recognises the objects, methods and properties from the DLL but when I run the VB.NET code it generates the following message:
"System.Runtime.InteropServices.COMException: 'Creating an instance of the COM component with CLSID {
59CA4977-912A-47C6-BAB7-D1B26C0D6ACC} from the IClassFactory failed due to the following error:800a0beb0x800A0BEB.'"
I have a VB6 .EXE application which uses that DLL and when I install it on my computer it and it runs fine.
What else do I need to add to the VB.NET project to solve this problem ?