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.
|