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

Compiling Error

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

    Compiling Error

    I am trying to import an indicator and error message. On compiling a file, it displays the following message without naming a script.

    "An assembly with the same identity 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been imported. Try removing one of the duplicate references. CS1703 - click for info 0 0"

    #2
    Hello ArbTrader,

    Can you please right click in the code window and select References. Delete any duplicate references. Subsequently compile your NinjaScript files and check if they compile without error.
    JasonNinjaTrader Customer Service

    Comment


      #3
      CS1703 doesn't have any help available. Also, this shows on every script I try to compile.

      Comment


        #4
        Were you unable to open the References window? Or did it not list any duplicate references?

        You can delete references by highlighting them and click the Delete button.
        JasonNinjaTrader Customer Service

        Comment


          #5
          Here's what happened from start:
          1.) Import script error (programming error)
          2.) I open any script and try to compile, in order to find name of the script with error.
          3.) I get the above error. It does not contain name of a script causing this error (empty space under NinjaScript File)
          4.) When I click on 'CS1703-click for info' tab, it shows NoDoc in help section.

          Hope this explain the complete issue.

          thanks,

          Comment


            #6
            Could please proceed as per post #2 and if this will not work, please respond to my questions in post #4.

            If there is something not clear, please let me know and I can further clarify.
            JasonNinjaTrader Customer Service

            Comment


              #7
              It worked, thanks.

              Comment


                #8
                Jason, I have a similar problem with NT8....but none of the below works. It keeps saying I have several issues in regards to assembly with same identity must be removed. I don't know how to remove, or even where they are in the first place. Please help.

                Comment


                  #9
                  Hello usdivers,

                  Please see the instructions below for NinjaTrader 8.

                  From the Control Center please select New--> NinjaScript Editor
                  In the NinjaScript Editor please right click and select References.
                  In the Reference window look for duplicate .DLL file references
                  If you see a duplicate .DLL file reference, please left click on the reference and select Remove
                  JasonNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by yertle, Yesterday, 08:38 AM
                  7 responses
                  28 views
                  0 likes
                  Last Post yertle
                  by yertle
                   
                  Started by bmartz, 03-12-2024, 06:12 AM
                  2 responses
                  20 views
                  0 likes
                  Last Post bmartz
                  by bmartz
                   
                  Started by funk10101, Today, 12:02 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post funk10101  
                  Started by gravdigaz6, Yesterday, 11:40 PM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by MarianApalaghiei, Yesterday, 10:49 PM
                  3 responses
                  10 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Working...
                  X