2010-08-21 12:41:39:976 (Kinetick – End Of Day (Free)) Data.Bars.GetBarsNow: instrument='AA' from='2010-08-21' to='2010-08-21' period=Daily splitAdjusted=False dividendAdjusted=False bars=0 session='US Equities RTH' 2010-08-21 12:41:40:615 UI (re)load complete, took 1.5 secs, 281.3 secs after app start 2010-08-21 12:42:16:071 Code.Editor.OnLoad: Failed to reference 'System.Core.dll': System.ApplicationException: Could not load exported type data for assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and type 'System.TimeZoneInfo'. ---> System.TypeLoadException: Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) at System.Reflection.RuntimeMethodInfo.get_Signature() 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) --- 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.AssemblyCodeRepository.a.a(c A_0, ResolveEventHandler A_1) at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.Add(Assembly assembly, String assemblyFullName, DotNetProjectResolver projectResolver) at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(Assembly assembly, String assemblyFullName) at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(Assembly assembly) at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReferenceForSystemAssembly(String assemblyName) at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e) 2010-08-21 13:00:58:398 in OnUnhandledThreadException 2010-08-21 13:00:58:445 ********* exception trapped ********* 2010-08-21 13:00:58:445 Method not found: 'Void Microsoft.CSharp.CSharpCodeProvider..ctor(System.Collections.Generic.IDictionary`2<System.String,System.String>)'. 2010-08-21 13:00:58:445 at NinjaTrader.Code.Compiler.Compile(Boolean useFilesInTmp, Boolean excludeCustomRootDir, String fileToIgnore) at NinjaTrader.Code.Editor.Compile() at NinjaTrader.Code.Editor.OnToolbarClick(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 2010-08-21 13:01:08:426 Gui.WorkspaceOptions.ApplicationExit 2010-08-21 13:01:11:188 Gui.Globals.AppExit: deactivating hot keys
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!
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
NinjaTrader
Can't compile Ninjascripts on fresh install of NT7B20
Collapse
X
-
Can't compile Ninjascripts on fresh install of NT7B20
Code:Tags: None
-
Similar problem - Code.Editor.OnLoad
I am also seeing something similar. Upon adding a custom indicator to a chart, NT crashes with a windows "stopped working" message. Same file has worked previously, including on beta 20. OS = Windows 7. NT = 7b20
Trace file shows:
2010-09-02 22:11:09:446 (Gain Test) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=0
2010-09-02 22:11:50:652 Code.Editor.OnLoad: Failed to reference 'NinjaTrader.Custom, Version=7.0.0.20, Culture=neutral, PublicKeyToken=null': System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
Comment
-
Thanks Bertrand. After some more debugging, I determined that I was improperly accessing a data series in some circumstances, and was able to fix the problem. So the error was a coding bug, and I'm guessing the crash likely an unhandled exception...
PS. I might be able to recreate the erroneous code, but I might not get it back to exactly how it was. But if you still need the example I will try to recreate it.
This is on Win 7 64 bit.
Thanks!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
241 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment