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 ghoul, Today, 06:02 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        44 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        179 views
        0 likes
        Last Post jeronymite  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Working...
        X