Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Can't load external assembly after Beta 3 upgrade

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

    Can't load external assembly after Beta 3 upgrade

    After upgrading to the latest 7.0.1000.3 64-bit, I can no longer load external dll's. I have an indicator that accesses a SQLite database and now I keep getting either of these 2 error messages:

    2/28/2011 1:53:41 PM|0|4|Unable to create instance of indicator 'NinjaTrader.Indicator.DojiWhite'. Most likely the implementation no longer exists, or there is no default constructor defined, or the default constructor does not work correctly: System.TypeInitializationException: The type initializer for 'NinjaTrader.Indicator.Indicator' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.

    2/28/2011 3:27:22 PM|0|4|Unable to create instance of indicator 'NinjaTrader.Indicator.DojiWhite'. Most likely the implementation no longer exists, or there is no default constructor defined, or the default constructor does not work correctly: System.TypeInitializationException: The type initializer for 'NinjaTrader.Indicator.Indicator' threw an exception. ---> System.IO.FileLoadException: AssemblyResolveEvent handlers cannot return Assemblies loaded for reflection only.

    The SQLite dll appears when I go to remove ninjascript assembly from the control center so I know NT sees it, I don't understand why the indicators aren't. I can even compile the indicator that uses SQLite successfully but it doesn't show up in the list of indicators. Everything about the DLL is the same, it's the exact same one I've been using before. Is there something I need to know? The upgrade procedure had me clear out all external assemblies, so maybe something with the way beta 3 handles this is changed?

    #2
    Hello claxxical,

    Did you add reference to these dlls in the NinjaScript editor? Right click in editor > References > then browse to files.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Yes I did, otherwise the indicator wouldn't have compiled.

      Comment


        #4
        Try removing the refernce and adding it back, and checking the file itself to make sure everything is in order. If you're still having issues, we can try the package on our end and compare results. Can post here or send to support 'at' ninjatrader 'dot' com.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          It magically started working on its own. Strange. I tried removing and adding it 100 times before, rebooting, etc but now it works this morning.

          Comment


            #6
            Glad to hear. Thank you for the follow - up, claxxical.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Balage0922, Today, 07:38 AM
            0 responses
            1 view
            0 likes
            Last Post Balage0922  
            Started by JoMoon2024, Today, 06:56 AM
            0 responses
            6 views
            0 likes
            Last Post JoMoon2024  
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            19 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            6 views
            0 likes
            Last Post Creamers  
            Started by Segwin, 05-07-2018, 02:15 PM
            12 responses
            1,786 views
            0 likes
            Last Post Leafcutter  
            Working...
            X