Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error code: Duplicate Global System Runtime CS0579

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

    Error code: Duplicate Global System Runtime CS0579

    Hello - I used the Indicator Wizard to create a basic Indicator to plot the OBV with 4 different moving averages. At some point I accessed Visual Studio and received a message saying I was using an older version of .Net framework and did I want to go back to it (if I remember correctly). I clicked yes and since then I have not been able to compile anything and have been getting the following message:

    Click image for larger version

Name:	Duplicate Global System.PNG
Views:	446
Size:	9.9 KB
ID:	1177951

    Can you tell me what I can do to rectify this? You can see it's referencing Line 4 but that's the using System.xml declaration and I can't comment that out of course. I am attaching a .txt file of the code because I can't do the Export with non-compiled code.

    Checking other posts for the CS0579 error code: in NT8>bin>Custom I do not have a System.Runtime.Versioning or AssemblyAttributes file in that folder. I do have one AssemblyInfo.cs and a NinjaTrader.Custom.sln (Visual Studio Solution). Maybe if I do a fresh install that would solve the problem?

    Thank you for any advice or suggestions.

    #2
    Just solved it on my own - found a second .NetFramework in bin>Custom>obj>Debug dated 11/8/2021 (when I tried to use Visual Studio) and dragged it to the desktop - compiles fine now. Thank you.
    Last edited by JohnS52; 11-09-2021, 01:43 PM.

    Comment


      #3
      Hello JohnS52,

      Solution was saved in Visual Studio or an attempt to compile was performed in VisualStudio and this causes Visual Studio to write an AssemblyAttribute.cs file.

      Delete Documents\NinjaTrader 8\bin\Custom\obj folder to resolve
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X