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

Can't compile Ninjascripts on fresh install of NT7B20

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't compile Ninjascripts on fresh install of NT7B20

    Code:
    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
    Tells me I need to shut down and see the trace file. Above are the relevant lines from the trace.

    #2
    zwentz, can you please send me full trace / logs via Help > Mail to Support to my Attn?

    Which .NET version and OS are you running?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      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)
      Last edited by OregonSun; 09-02-2010, 11:23 PM. Reason: additional comments

      Comment


        #4
        OregonSun, is this on a 32 or 64 bit Win7? Any way I could test scenario on my end here for you?

        Thanks
        BertrandNinjaTrader Customer Service

        Comment


          #5
          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!
          Last edited by OregonSun; 09-10-2010, 12:11 AM. Reason: Added addendum

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by BarzTrading, Today, 07:25 AM
          2 responses
          23 views
          1 like
          Last Post BarzTrading  
          Started by devatechnologies, 04-14-2024, 02:58 PM
          3 responses
          20 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by tkaboris, Today, 08:01 AM
          0 responses
          4 views
          0 likes
          Last Post tkaboris  
          Started by EB Worx, 04-04-2023, 02:34 AM
          7 responses
          163 views
          0 likes
          Last Post VFI26
          by VFI26
           
          Started by Mizzouman1, Today, 07:35 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X