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 gentlebenthebear, Today, 01:30 AM
        2 responses
        13 views
        0 likes
        Last Post gentlebenthebear  
        Started by Kaledus, Today, 01:29 PM
        2 responses
        7 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by frankthearm, Yesterday, 09:08 AM
        13 responses
        45 views
        0 likes
        Last Post frankthearm  
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by Conceptzx, 10-11-2022, 06:38 AM
        2 responses
        56 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Working...
        X