NexusFi: Find Your Edge


Home Menu

 





Can't load file or assembly


Discussion in NinjaTrader

Updated
    1. trending_up 1,941 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Can't load file or assembly

  #1 (permalink)
 giandee 
Sacramento CA/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 3 since Jan 2013
Thanks Given: 1
Thanks Received: 0

Heya,

Error im receiving is Error on calling 'OnBarUpdate' method for strategy 'dumbstrategy/enterguidhere'. Could not load file or assembly 'CustomDLL, Version=1.0.0.0,Culture=neutral, PublicKeyToekn=null; or one of its dependencies. The System cannot find the file specified.

I have downgraded the original DLL from .net 4 to .net 3.5 and 3.5 client profile which is just a stripped down version of .net 3. We will call the dll I am referencing Test.DLL Now Test has references to other DLL's but upon compilation those should now be contained within the Test.DLL. So I have tried moving the Compiled Test.DLL and its Test.DLL.config and its pdb file to the bin\debug directory in the ninjatrader directory manually, readded references, restarted NT several times. I have also created a new strategy and only added the reference. The reference is picked up by intellisense in the script editor window. Compiles fine without error. The error is at runtime when trying to instantiate a new instance of one of the classes inside the DLL, otherwise no errors occur.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 giandee 
Sacramento CA/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 3 since Jan 2013
Thanks Given: 1
Thanks Received: 0


Had to do a full reinstall of NT7 and now it executes.

Follow me on Twitter Started this thread Reply With Quote




Last Updated on June 12, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts