Runtime Callable Wrapper Class Not Registered

459 Views Asked by At

I have a dll called srxCOM.dll for titan-FTP, this dll was made for VB6. I want to use the dll in Visual Studio .NET, So I created a run-time callable wrapper using tblimp and called it srxCOMnet.dll. I've added the dll as a reference in my VS project and can access functions within it. Upon building the project I get this error,

ERROR: CLSID {A82C6CF0-7B42-4ABD-AECB-987E298A41AF} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

After some research I have tried:

  • registering srxCOM.dll which was successfull.
  • registering the RCW srxCOMnet.dll which failed.
  • Changing build options from Any CPU to x86.

I don't want to write my application in VB6, is there anything else I can try?

1

There are 1 best solutions below

0
On

I ended up using a different dll supplied by titanFTP.

I found this codeproject.com:

Primary interop assemblies can reference only other primary interop assemblies. If your assembly references types from a third-party COM type library, you must obtain a primary interop assembly from the publisher before you can generate your primary interop assembly. If you are the publisher, you must generate a primary interop assembly for the dependent type library before generating the referencing primary interop assembly.

See this link below

codeproject Using-Unmanaged-VB-Code-in-NET