Archived Forum Post

Index of archived forum posts

Question:

Run-time error '-2147221231 (80040111)' after updating Active-X Chilkat Socket

Oct 30 '14 at 22:32

Hi!

We have to support an old VB6 based project in which ChilkatSocket (licensed Active-X version 2.3.10.1 from 09/2011.) was used. Today I wanted to update the ChilkatSocket.dll to its latest version. I downloaded version 9.5.0.45 which is 6.5MB (2.3.10.1 was 1.8MB). I assume that there have been security related improvements (just assuming, I haven't checked) so I thought it might be time to use a newer version (probably should have done that earlier).

Using VB6 under a XP VM updating the dll works fine.

However, on a Win7x64 machine, I get the error message after replacing and registering the dll:

Run-time error '-2147221231 (80040111)':
Automation error
ClassFactory cannot supply requested class

I checked twice the dll is registered correctly (using %systemroot%syswow64regsvr32). I should notice that I did not unregister the previous version of that dll. I just replaced the DLL and ran regsrv32 (again).

Downgrading works fine. As soon as I replace the ChilkatSocket.dll (that what I renamed it to from its original name ChilkatAx-9.5.0-win32.dll) with version 2.3.10.1, everything is working properly again.

Help will be appreciated!

Thanks in advance! T.

Edit: I reproduced this issue with W7x64 and W2k8R2x64.


Answer

Make sure the new 32-bit ActiveX DLL is registered correctly. (VB6 will always use 32-bit, even on 64-bit systems.)

Also, remove the reference from the old Chilkat ActiveX and add a reference to the new ActiveX. The new single-DLL ActiveX is effectively a different ActiveX with a different name, different CLSID's etc.