Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem loading DLL

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

    Problem loading DLL

    I produced a DLL in SharpDevelop and loaded it successfully in NT6. No problems compiling at all. But when I run my Strategy I get the following:

    'Could not load file or assembly 'MyLib', .... PublicKeyToken='null' or one of its dependencies. The system cannot load the file specified.

    I'm a bit confused - if it's compiling why can't it be loaded? Is there a particular place that DLL needs to go to?

    BTW, right now it's in: My Documents\NinjaTrader 6.5\bin\Custom

    I also tried C:\Program Files\NinjaTrader 6.5\bin but it doesn't work either...

    Thanks,

    Michael
    Last edited by molecool; 04-03-2009, 08:31 AM.

    #2
    Hi Michael, it should be place in the folder you added as a reference to your NinjaScript assembly.

    Comment


      #3
      Right!

      Originally posted by NinjaTrader_Bertrand View Post
      Hi Michael, it should be place in the folder you added as a reference to your NinjaScript assembly.
      Well, obviously that's where I have it! LOL

      Not sure what the issue is - it works fine during compilation but refuses to run and generates that error...

      FYI - I only have the DLL in that directory. Does it need to be specially packaged in a way? I know you guys need to focus on NT only issues but I'm new to C# and in Java creating a jar library is a bit more involved. Any pointer would be appreciated.

      Any ideas?

      Michael
      Last edited by molecool; 04-03-2009, 09:03 AM.

      Comment


        #4
        The C:\Program Files\NinjaTrader 6.5\bin folder should be good - did you tried restarting NinjaTrader and recompiling your custom script? Unfortuntately this is outside of what's supported...

        Comment


          #5
          mole,

          I had the same issue a while ago. it worked after this;

          You have to add the reference in the NT script file by right click, add reference, and navigate to the proper dll. The, recompile, then restart NT. Once this is done, NT will load it each time you start it.

          The .dll file shoudl be in \My Documents\NinjaTrader 6.5\bin\Custom
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            HA!!

            Originally posted by mrlogik View Post
            mole,

            I had the same issue a while ago. it worked after this;

            You have to add the reference in the NT script file by right click, add reference, and navigate to the proper dll. The, recompile, then restart NT. Once this is done, NT will load it each time you start it.

            The .dll file shoudl be in \My Documents\NinjaTrader 6.5\bin\Custom
            Strange you both suggested that - I actually thought of that before I got your responses and you were both right! Seems to work now :-)

            Anyway, thanks a lot guys! I was already afraid I would have to squeeze all that code into my strategy. Much nicer this way....

            Michael

            Comment

            Latest Posts

            Collapse

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