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:	451
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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X