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 bortz, 11-06-2023, 08:04 AM
            47 responses
            1,606 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            13 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X