Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Beta 16: SqlServerCe version mismatch

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

    Beta 16: SqlServerCe version mismatch

    App wont even start up... remember vaguely something about this some eons ago... not sure what was done for it.

    2010-05-28 00:52:33:980 in OnUnhandledApplicationException
    2010-05-28 00:52:33:983 ********* exception trapped *********
    2010-05-28 00:52:33:983 Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    2010-05-28 00:52:33:983 System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    File name: 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=null'
    at Wilson.ORMapper.Internals.Connection.CreateDbComma nd(Guid transactionId, Type entityType, CommandInfo commandInfo, IDbConnection conn, String sqlStatement, Parameter[] parameters)
    at Wilson.ORMapper.Internals.Connection.GetScalarValu e(Type entityType, CommandInfo commandInfo, String sqlStatement, Parameter[] parameters)
    at Wilson.ORMapper.ObjectSpace.ExecuteScalar(String sqlStatement)
    at NinjaTrader.Db.Globals.get_Engine()
    at NinjaTrader.Gui.Globals.ApplicationStart()
    at NinjaTrader.Gui.ControlCenterForm.Application_Idle (Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.Sys tem.Windows.Forms.UnsafeNativeMethods.IMsoComponen t.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run()
    at NinjaTrader.NTMain.Main()
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    #2
    Hello tradejockey,

    The crash indicates the installation instructions were not properly performed. See below.

    – The following video reviews the steps outlined below - http://www.ninjatrader-support2.com/...05-20_0959.swf
    – Start your current NinjaTrader 7 version
    – Within the Control Center window select File > Utilities > Remove NinjaScript Assemblies and remove every single assembly listed
    – Uninstall NinjaTrader 7 via Windows Control Panel
    – Delete the files of the folder /Documents/NinjaTrader 7/bin/Custom (DO NOT delete the sub folders)
    – Delete the folder C:\Program Files\NinjaTrader 7 if you have a 32-bit machine OR
    – Delete the folder C:\Program Files (x86)\NinjaTrader 7 if you have a 64-bit machine

    You will need to uninstall NinjaTrader 7 completely, since you cannot open the software to remove the assemblies. You will lose all settings.

    Uninstall NinjaTrader 7 via the Windows Control Panel-->Add/Remove Programs (XP), Programs and Features (Vista).

    Manually delete the C:\-->Program Files-->NinjaTrader 7 folder (if still exist)
    Delete the My Documents-->NinjaTrader 7 folder.

    Clear your browser cache and download and install NinjaTrader 7 at the link below.


    If you like to save your settings, please try the following steps. Please uninstall NinjaTrader 7 from the Control Panel, but do not delete the (My) Documents-->NinjaTrader 7 folder. Delete the Program Files-->NinjaTrader 7 folder (if still exists) and remove the files in the (My) Documents-->NinjaTrader 7-->bin-->Custom folders (DO NOT delete the sub folders)

    Subsequently re-install NinjaTrader 7.

    Likely you will have a compiling issue when compiling your NinjaScript files, so please go to Tools-->Edit NinjaScript-->Indicator. Double click any indicator to open the NinjaScript Editor menu. Right click in the window and select References. Remove any reference that is not part of NinjaTrader or .NET. I have included a screenshot of the references which you can leave.

    Subsequently hit F5 in the NinjaScript Editor menu to compile all your NinjaScript files and check if all compiles successful.
    Attached Files

    Comment


      #3
      Beta 16 blowout

      same issue here.

      two nt7 b15 workstations upgraded to b16 w/o problem.

      two blew up...so a complete scrub is necessary?

      b16 is not ready for prime-time!

      Comment


        #4
        Hello billm,

        Please note that such a crash will not occur if you perform the installation instructions we provided.

        My post includes instructions to re-install NinjaTrader 7.0.0.16 with losing your settings as well - see the last two paragraphs.

        Comment


          #5
          b16 instructions

          ok, I'll redo as recommended.

          I suggest you change the pop-up notification for new versions to reflect the need to follow special instructions. I have two boxes which upgraded w/o issue and two that blew up...very inconsistent, no?

          thanks

          Comment


            #6
            These instructions are reflected when you click 'Download' on the download page for version 7.0.0.16.

            Comment


              #7
              Any particular reason as to why those steps listed are not part of the installer? Visual Studio's installers are fairly advanced and even if not, a program should be able to accomplish all those steps and if all components are made part of the project, installer will build the setup correctly.

              Also, these kind of steps can be put in a script which the end user can run just like a shell script only windows equivalent of it. And same goes for any database related changes either such as ddl, dml.

              Error is rather clear and some of the steps seem draconian and perhaps irrelevant to the version mismatch issue. Besides, why would you want to deal with an end user in production environment asking them to do a bunch of stuff such as do this but not this.. and btw you might lose your settings etc..

              Just as a side note, the "installation steps not performed correctly" suggests that the user is dumb which might very well be.. but come on.. just put all the steps in the setup or give us a script that does all that and then invokes setup on its own. I can understand if you are a small shop with not enough manpower though..

              Comment


                #8
                I am not sure why these steps are not included in the installer. They are reflected when you download NinjaTrader from the download page.

                Please note that NinjaTrader 7 is still in beta phase and not in production - NinjaTrader 6.5 is the current production version.

                I will forward the suggestion to include the steps in the setup or have it performed automatically. Thank you for your feedback.

                Comment


                  #9
                  Unfortunately these steps could not be performed automatically (part of the installer), since there are too many possibilities as to what users have on their machine.

                  Comment


                    #10
                    SDF and Wilson OR Mapper issues

                    I removed NT7B16 and installed again. This time, it worked atleast for the 32 bit version. 64 bit version otoh took AWOL. Please see attached.
                    Attached Files

                    Comment


                      #11
                      Hello tradejockey,

                      Can you please proceed as per the instructions outlined at the link below.


                      Let me know if the error message persists.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      599 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      345 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      558 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      558 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X