Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiler Error CS0579

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

    Compiler Error CS0579


    I seem to have screwed something up when experimenting with custom script development on NinjaTrader 8. I only remember using the NinjaScript editor and then at some point also clicking on the visual studio button as well.


    Now I can't do anything including compiling scripts and it wont even let me import an indicator because it says I have scripts with errors.

    When I try to just compile one of the included indicators I get error CS0579. I have attached a screenshot for your reference.

    I deleted all of my faulty custom scripts but it still thinks that I have scripts with errors and I can't get past this wall.

    I also tried updating to the latest version of NinjaTrader but I still have the same problem. It thinks that I have custom scripts with errors that won't compile. How can I locate these files, if they even still exist, and then delete them manually?

    If you notice, in the attached screen shot of some error messages, under the NinjaScript File column it seems to indicate \NETFramework Version 4.8 on one line and version 4/6/1 on the second line. Perhaps there are two versions floating around on my computer due to my clicking the Visual Studio button that are now simultaneously linked to NinjaTrader and causing this compiler confusion.

    I just don't know how to fix this problem.

    Thank you very much for your advice.

    Regards

    Kerry

    #2
    Hello Dr Kerry,

    That error generally happens if a compile is done from visual studio, that will generate extra data in the user data folder that will cause a compile error. Please check the following folder:

    Documents\NinjaTrader 8\bin\Custom

    Make sure there are not any folders named obj, bin, or NetFramework like you see in the left column of the image. If there are any of those folders delete them and then try to compile again from the editor.

    Comment


      #3
      Hello Jesse,

      Thank you very much! I removed the obj and bin files. Now everything seems to be back to normal.

      I would have never figured this out by myself.

      Thank you again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      110 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      59 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      37 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      41 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      78 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X