Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,611 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        22 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X