Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import NinjaScript Archive File Error Beta 22

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

    Import NinjaScript Archive File Error Beta 22

    Since upgrading to Beta 22 from 21, I can't seem to import my compiled assembly...If I transport the source code over, it compiles fine. I get the attached error dialog. Any thoughts?
    Attached Files

    #2
    Hello un$ane,

    Likely the duplicate method message is caused by the existence of the source code. Please try to delete your script from Tools > Edit NinjaScript > indicator/strategy and then import the assembly.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I wish it was that easy...I've done a fresh install and still it's being rejected. Is there more info supplied somewhere in a log file? Are you storing variables in the registry? I've noticed others are having compiling issues since upgrading to 22 too.

      Comment


        #4
        Unfortunately no additional information is logged. There's nothing stored in the registry, but if you didn't manually delete the My Documents\NinjaTrader 7 folder, all custom items from the previous installation remain.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Yes, that is part of the fresh install. Any other suggestions?

          Comment


            #6
            Try loading the source code file one more time and verifying it compiles. Then, export to assembly the new file and try with this.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Ok, I'm exporting them one at a time and found the one it's choking on. I'll investigate further, without debugging though. It's weird it will compile the source files fine, but won't import the assembly. I'll let you know if I find anything that may be of use to you or someone in the future.

              Thanks for the help.

              Comment


                #8
                Well...I had an enum in the wrong place I guess. VS thought it was fine, but NT didn't like it. The joy of compiling and debugging with two platforms. Thanks again for the help, and sorry to waste your time.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                605 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                351 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X