I'm having some problems incorporating a COM DLL into a C#.NET program. The DLL was given to me by a third party. It was done in VB6. Currently, this is the error I'm receiving.
System.Runtime.InteropServices.COMException was unhandled. HResult=-2147221164 Message=Retrieving the COM class factory for component with CLSID {46F5C9EE-D750-4740- AFBD-682F1E097776} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
It throws the exception when I try to create a new object from one of the classes in the DLL file.
I've tried registering the DLL with regsvr32.exe and using tlbimp.exe to create another DLL (which worked but gave me a tremendous amount of warnings). Everytime I've tried debugging my program I get some sort of exception.
Should I just give up and do this in VB6? I really don't want to...
regsvr32
reported that it was succesful? – Zdeslav Vojkovic