There are two problems here: one is that the program isn't starting up properly, and the other is that there's no indication that the program started up improperly. The second problem is more important.
Attached are two trace files, both very small. The first one is from Friday, when the system gave me no indication that there was any problem and didn't place any trades. The other is from today, when it started up with a problem and I noticed it because I looked in the trace file and restarted the program. The second startup worked just fine. Here's a snippet from Friday's trace file (line 115):
2013-11-01 07:27:26:061 Code.Editor.OnLoad: Failed to reference 'C:\Program Files (x86)\NinjaTrader 7\bin\NinjaTrader.Core.dll': System.ApplicationException: Could not load exported type data for assembly 'NinjaTrader.Core, Version=7.0.1000.16, Culture=neutral, PublicKeyToken=null'. ---> System.TypeLoadException: Method 'OnMaterialized' in type 'NinjaTrader.Cbi.Order' from assembly 'NinjaTrader.Core, Version=7.0.1000.16, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at System.Reflection.Assembly._GetExportedTypes()
at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
--- End of inner exception stack trace ---
at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.Ass emblyCodeRepository.a.a(c A_0, ResolveEventHandler A_1)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.Ass emblyCodeRepository.a.a(c A_0, ResolveEventHandler A_1)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.Ass emblyCodeRepository.Add(String assemblyName, DotNetProjectResolver projectResolver)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.Dot NetProjectResolver.AddExternalReference(String assemblyName)
at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
2013-11-01 07:27:26:123 Code.Editor.OnLoad: Failed to reference 'C:\Program Files (x86)\NinjaTrader 7\bin\WilsonORMapper.dll': System.ApplicationException: Could not load exported type data for assembly 'WilsonORMapper, Version=4.2.2.0, Culture=neutral, PublicKeyToken=null' and type 'Wilson.ORMapper.ObjectSpace'. ---> System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\NinjaTrader 7\bin\System.Data.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
File name: 'file:///C:\Program Files (x86)\NinjaTrader 7\bin\System.Data.dll'
at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature( )
at System.Reflection.RuntimeMethodInfo.FetchNonReturn Parameters()
at System.Reflection.RuntimeMethodInfo.GetParameters( )
at ai..ctor(k A_0, Type A_1)
at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
Comment