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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X