Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dependent assembly is not found

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

    Dependent assembly is not found

    Hi, I am using my own shared .net library from the strategy. I have added it with right click -> References. The strategy compiles fine, no problems here. But when I go and try to run this strategy, right after I set up all parameters and click Ok, the previously created strategy is actually created. On the Log tab I see the following line after that (the names are removed):
    9/15/2011 12:37:20 PM Strategy Failed to call method 'Initialize' for strategy '.../d575e59e134f436d9df79289b7aa531f': Could not load file or assembly '..., Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    Meaning that .net loader cannot find my shared assembly. I tried placing it in the following folders - the result is the same:
    c:\Users\<user>\Documents\NinjaTrader 7\bin\Custom\
    c:\Program Files (x86)\NinjaTrader 7\bin\

    Please advise what would be the right way for using my shared library. Thanks.

    #2
    Hello kltdco,

    Should be able to do this by adding the reference. It does have to be in:
    documents\NinjaTrader 7\bin\custom.

    After adding the reference and placing the file, you need to restart NinjaTrader before you can use.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks, double checked everything and the real problem is that my shared dll was built for .Net 4. Rebuilt it for 3.5 and it all worked fine.

      Comment


        #4
        OK, glad it's sorted. Thanks for updating us.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 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
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X