¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

TwsActiveX class not registered run-time error '-2147221164 (80040154)


 

I get the Visual Basic error "?class not registered run-time error '-2147221164 (80040154)"? when opening?TwsActiveX? with Windows 10 and Microsoft 365.? ?I have re-installing Microsoft 365, but the error persists.? ?Any suggestions on what to try will be welcome.? ?

Thank you.??

Daniel


 

¿ªÔÆÌåÓý

If you build the ActiveX component (TWSLib.dll) yourself, then you have to run Visual Studio with Administrator privileges to be able to write the relevant registry entries.

?

If you used IB's API installer to get the ActiveX component it should be properly registered: I suggest uninstalling and re-installing the API.

?

?

From: [email protected] <[email protected]> On Behalf Of DANIEL.JOUBERT2@...
Sent: 16 December 2021 04:52
To: [email protected]
Subject: [TWS API] TwsActiveX class not registered run-time error '-2147221164 (80040154)

?

I get the Visual Basic error "?class not registered run-time error '-2147221164 (80040154)"? when opening?TwsActiveX? with Windows 10 and Microsoft 365.? ?I have re-installing Microsoft 365, but the error persists.? ?Any suggestions on what to try will be welcome.? ?

Thank you.??

Daniel


 

Hi Richard,

Thank you for the suggestion.? ?I used IB's API installer.? ?I have tried re-installing the API,? it did not work.? I re-installed Windows 365 and the API,? it still does not work.? The error persists.

Daniel


 

Hi Daniel:? Were you ever able to fix this?? I'm getting the same error.
Thanks,
Martin


 

Update/workaround:
  1. Uninstalled 64-bit version of Microsoft 365
  2. Restarted computer
  3. Installed 32-bit version of Microsoft 365
I realize that after v973.05 the API installer is supposed to work with 32-bit AND 64-bit Excel, but in my case it doesn't work with the latter and 32-bit is still required.