Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assembly Reference

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

    Assembly Reference

    I'm in the process of moving my NT work to another machine. As part of that, I have a script that has been running fine on the previous machine, but I get a missing assembly reference error when I add it to the strategies on the new machine. In particular, this is referencing "System.Data" (I'm using "DataTables()"). However, this .DLL is most definitely in the new machine and in the same directory as the other .DLLs. When I type "System." a menu of the various system .DLLs appears (eg, "CodeDom", "Collections", etc., as one would expect), but that list is missing "Data". Also, when I write C# code in Visual Studio that includes System.Data.DLL, that code compiles and runs just fine.

    What's going on? How do I fix this? What is the secret folder that NT is trying to access (there're several candidates)?

    #2
    Hello spottysallrite,

    Are the references in the NinjaScript Editor -> References window the same on both machines?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by spottysallrite View Post
      I'm in the process of moving my NT work to another machine.
      Did you copy the old 'Config.xml' to the new machine?

      Comment


        #4
        Chelsea: Looks like that worked ! Gads ! What a mind bender ... (I'm trying to channel my inner masochist. ; } )

        bitdavid: Thanks for the suggestion, but I didn't look into that.

        Comment


          #5
          Just what does "NinjaScript Editor -> References" do? (Yes, invoking it allowed me to obtain a compiled script, but what was it about that that produced that result?) Is there a particular folder that NT's compiler references in order to find those .DLLs? If so, where is it?

          Comment


            #6
            Hello spottysallrite,

            The References are path locations to dll files that allow NinjaTrader (or a C# project in general) to load the dlls into memory and use these.

            Documents\NinjaTrader 8\bin\Custom
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            71 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            143 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            76 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            47 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            51 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X