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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        51 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        32 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X