Archived Forum Post

Index of archived forum posts


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

Oct 30 '14 at 22:32


We have to support an old VB6 based project in which ChilkatSocket (licensed Active-X version from 09/2011.) was used. Today I wanted to update the ChilkatSocket.dll to its latest version. I downloaded version which is 6.5MB ( 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, everything is working properly again.

Help will be appreciated!

Thanks in advance! T.

Edit: I reproduced this issue with W7x64 and W2k8R2x64.


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.