why do I get error "Error using actxserver (line 90) Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'. Error in ibtws"

I'm using Trading toolbox and real account in IB. Command I'm using is "ib = ibtws('',7496);"
>> ib = ibtws('',7496);
Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
Error in ibtws
I have enabled active x in IB API. And I'm using Matlab and IB on a same machine.
thanks for your help in advance.
Laimis

 Réponse acceptée

6 commentaires

>> ib = ibtws('',7496); Error using feval Server Creation Failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
Error in actxserver (line 86) h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in ibtws
Thank you for your answer. But I still get an error.
The server executable is missing a dependency.
Note: one reason that you can end up missing a dependency is if you are trying to use a 32 bit DLL from a 64 bit program. Everything needs to match up -- 64 bit MATLAB needs a 64 bit ActiveX control which needs 64 bit DLLs.
do you have any suggestions to solve this problem?
thank you in advance. Laimis
Dependency Walker is my only suggestion.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by