Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Crash to Desktop on launch - Connecting to IB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Crash to Desktop on launch - Connecting to IB

    As the title says... when I launch NT7, the latest stable release (reinstalled it today from the website download), I get the error:
    Unable to connect to database 'Data Source="C:\users\<cleared>\Documents\NinjaTrader 7\db\NinjaTrader.sdf"': ObjectSpace: Connection String is Invalid - Exception has been thrown by the target of an invocation
    While I realize that this would indicate a problem within the SQL Database, the error only started appearing when I set up an account connection to my Interactive Brokers TWS.

    Renaming the NinjaTrader.sdf file within the error creates a new database file, however the error persists.

    That said, the problem does go away if I use the 32 bit variant. Or at least, the error does. It attempts to open and connect to TWS (which is open and configured properly, I have used it successfully for a data connection) however the UI fails to display.
    Last edited by AngryErik; 02-21-2013, 10:31 AM.

    #2
    Hello,

    Thank you for your note.

    NinjaTrader requires various Microsoft components to run, one of which is SQL compact Edition. Currently you may not have SQL Compact Edition for 64-bit or possibly have the incorrect version of SQL Compact Edition installed.

    Please follow the below steps to ensure the correct version of SQL Compact Edition is installed on your PC. If you are not entirely comfortable performing the steps below, please let me know and we can setup a time for a remote support session.
    • Navigate to the Windows Control Panel
    • Add and remove software/programs
    • Uninstall any SQL Compact Editions you see, if none are present you may ignore this step and continue onto the next step
    • Install latest SQL Compact Edition 3.5. SP2 which is available here: http://www.ninjatrader.com/support/f...NU_x64_zip.exe
    • Once you run the downloaded file it will ask you for a directory to extract the installer to. Point this to a temporary directory that you will be able to quickly locate later, such as the desktop
    • Navigate to the aforementioned directory in which the files have been extracted to (there will be two files)
    • SSCERuntime_x86-ENU.msi - Run this one first
    • SSCERuntime_x64-ENU.msi - No need to run this if you are on a 32 bit system, if you are on a 64 bit system you will also need to run this file, if you are not sure if you have a 64 bit system go ahead and run this file. If you are not using a 64 Bit operating system, the installer will cancel itself automatically
    • Follow the installation steps outlined in the installation wizard
    • Once installed you will need to restart your PC


    You will now be able to launch NinjaTrader 7

    If you are unable to launch NinjaTrader 7, please let me know and provide me with your phone number so that I may call you to further assist.
    CameronNinjaTrader Customer Service

    Comment


      #3
      Thanks - the CTD is resolved. Sadly, the application itself is still failing to launch (and in fact has prompted some rather paniced edits of my posts hahah).

      The application launches successfully, but then attempts to launch the TWS and punch my credentials in (username, tab, password, enter -- sadly it decided to do that while I was making my initial post hahah). Whether I let it log into TWS or not, the UI doesn't show up.

      I have again uninstalled and reinstalled the application, however it appears to be retaining this connection setting. I'm comfortable with manually editing config files or the registry, if this is stored in a particular place.

      Comment


        #4
        AngryErik,

        What version of TWS are you using? You can check under TWS -> Help -> About -> Scroll to the Build #

        With the current version of NinjaTrader, 7.0.1000.11, it is critical that you use TWS version 927. Please uninstall your existing version via the Windows Control Panel, and then install 927 via the following link:



        Once TWS 927 has been installed, please ensure that the configuration in our Connection Guide for TWS has been completed.

        The following link will take you to a page that details the steps required for creating a connection to Interactive Brokers and specific connection configuration information.
        CameronNinjaTrader Customer Service

        Comment


          #5
          No love, I'm afraid. I did have a more recent version of TWS installed, which I downgraded via the link provided.

          Current behavior is as before, I launch NT7, it shows the splash screen as it loads up, then it launches TWS, punches the credentials in, TWS launches, and nothing.

          The TWS settings are as they should be, the NT7 settings are unchangeable, as the NT7 application does not finish loading - splash screen goes away, process sits in the background, but nothing that I can interact with.

          Comment


            #6
            Problem solved... I waited with it open (letting it type the credentials out into notepad after TWS was launched the first time), and eventually it finished loading the NT7 application. I've disabled the connect on startup, and will take it from here.

            Thank you for your time.

            Comment


              #7
              AngryErik,

              Thank you for the update.


              Please ensure that TWS is not opening to Mosaic view.

              You can see an example of Mosaic view from the following link.



              If you are opening in Mosaic view, go to New Window -> Advanced Order Management (TWS).

              Once TWS window opens up, select File -> Save Settings.



              Additionally, is your TWS title bar different than the example screen shot?
              Attached Files
              CameronNinjaTrader Customer Service

              Comment


                #8
                AngryErik,

                Thanks for the update, Looks like my reply was just a minute late.

                Let us know if you have any further questions.
                CameronNinjaTrader Customer Service

                Comment


                  #9
                  Odd... I previously did not need to have the advanced order management window open. Perhaps a more recent build than 927.7 works with NT7 (I'll continue to use the supported version, of course).

                  I am 100% operational again, with the AOM window open NT7 was able to connect via socket to an open TWS client.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by swestendorf, Today, 11:14 AM
                  2 responses
                  5 views
                  0 likes
                  Last Post NinjaTrader_Kimberly  
                  Started by xiinteractive, 04-09-2024, 08:08 AM
                  4 responses
                  13 views
                  0 likes
                  Last Post xiinteractive  
                  Started by Mupulen, Today, 11:26 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post Mupulen
                  by Mupulen
                   
                  Started by Sparkyboy, Today, 10:57 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by TheMarlin801, 10-13-2020, 01:40 AM
                  21 responses
                  3,917 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Working...
                  X