Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"AssemblyAttributes.cs Duplicate global..Sy.." msg received during compile strategy?

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

    "AssemblyAttributes.cs Duplicate global..Sy.." msg received during compile strategy?

    Hi

    Getting this message when compiling a strategy, normally the C# program that won't compile gets deleted and the problem is resolved. This program does not exist on my system. See attached for image of actual message.
    thank you
    glen
    Attached Files
    Last edited by demarcog; 04-12-2021, 05:44 PM.

    #2
    Something have repeated twice.

    Check your dll file whether you import twice or check in the using namespace there.

    Comment


      #3
      cincai,

      Thanks for the response I appreciate your help as I can't compile anything and will hopefully from Ninja Support soon.


      I don't see any duplicate .dll files can you give me specific things to check and I'll check them? I was importing some indicators and strategies from the ecosystem and may have screwed something up but not sure where.

      thank you,

      glen

      Comment


        #4
        Hello,

        Thank you for your post.

        Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.
        • Open NinjaTrader
        • From the Control Center select the New menu--> select NinjaScript Editor
        • Right-click in the window and select Compile to compile all NinjaScript objects
        • At the bottom of the NinjaScript Editor window, a new section will appear where you can find the error locations
        • You can exclude the file referenced in the editor by double-clicking on the appropriate object type on the right of the NinjaScript Editor window. This will expand the object type folder. You can then select the file with a left-click--> right click on the object--> then select Open to begin debugging the file, Exclude From Compilation, or Remove to delete the file.

        If you are unsure as to what the error is indicating, please send me a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)
        • To send a screenshot with Windows 7 or newer I would recommend using Window's, Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

        We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip in our Help Guide:
        Please let us know if we may be of further assistance.
        Eric B.NinjaTrader Customer Service

        Comment


          #5
          HI EricB,

          Thanks for the response. Not too sure if I'm navigating this properly. iDepending on where I right click I see a box with a grayed out option to remove which I imagine I'd want to do.

          Can you take a look at the attached.
          Attached Files

          Comment


            #6
            Eric,

            I looks like a had a duplicate of that file no idea where it came from but had a date of yesterday and I deleted it.

            The compile error is gone, thanks for your help I thought my entire NT was trashed...

            glen

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by KenneGaray, Today, 03:48 AM
            0 responses
            2 views
            0 likes
            Last Post KenneGaray  
            Started by thanajo, 05-04-2021, 02:11 AM
            4 responses
            470 views
            0 likes
            Last Post tradingnasdaqprueba  
            Started by aa731, Today, 02:54 AM
            0 responses
            4 views
            0 likes
            Last Post aa731
            by aa731
             
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            10 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,237 views
            0 likes
            Last Post sidlercom80  
            Working...
            X