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

Add References... ERROR

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

    Add References... ERROR

    Hello,
    When I have added reference to
    "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\ System.Data.dll"

    and then used it this way:
    Code:
    using System.Data;
    Code:
    DataTable dt = new DataTable();
    I have got an error which you can see in the attachment.

    Please could you help me what to do?

    Thank you in advance.
    Attached Files

    #2
    Hello Luigio,

    Thank you for your post.

    Please send me your log and trace files for today so that I may look into what occurred.

    You can do this by going to the Control Center-> Help-> Mail to Support.

    Please place 'ATTN: Patrick - 920466' in the subject line and reference this thread in the body of the email: http://www.ninjatrader.com/support/f...ad.php?t=61012

    I look forward to assisting you further.

    Comment


      #3
      Originally posted by Luigio View Post
      Hello,
      When I have added reference to
      "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\ System.Data.dll"

      and then used it this way:
      Code:
      using System.Data;
      Code:
      DataTable dt = new DataTable();
      I have got an error which you can see in the attachment.

      Please could you help me what to do?

      Thank you in advance.
      You should use the correct version of .NET. NinjaTrader is using .NET v3.5 SP1, not .NET v4.0. Some features that NinjaTrader has not documented actually require .NET 2

      Comment


        #4
        Thanks for all support.
        It was caused by wrong path to the reference in configuration file.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        5 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X