Announcement

Collapse
No announcement yet.

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