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

Assembly Reference Error

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

    Assembly Reference Error

    In my log file it says an import failed because of the code on these lines, but I am calling out the full path for X / Y. It works on my local machine but not the machine that is importing it.

    uint X = (uint)System.Windows.Forms.Cursor.Position.X+150;
    uint Y = (uint)System.Windows.Forms.Cursor.Position.Y+150;


    2017-04-24 07:41:19:964|2|4|Error compiling import assembly: c:\Users\pinki\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Indicators\Trickles. cs(415,10) : error CS0012: The type 'System.Drawing.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
    2017-04-24 07:41:19:964|2|4|Error compiling import assembly: c:\Users\pinki\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Indicators\Trickles. cs(415,62) : error CS1061: 'System.Drawing.Point' does not contain a definition for 'X' and no extension method 'X' accepting a first argument of type 'System.Drawing.Point' could be found (are you missing a using directive or an assembly reference?)
    2017-04-24 07:41:19:964|2|4|Error compiling import assembly: c:\Users\pinki\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Indicators\Trickles. cs(416,62) : error CS1061: 'System.Drawing.Point' does not contain a definition for 'Y' and no extension method 'Y' accepting a first argument of type 'System.Drawing.Point' could be found (are you missing a using directive or an assembly reference?)

    #2
    Hello habibalex,

    Thank you for your post.

    You will need to have the .dll file System.Drawing reference in the installation you are attempting to import the file to.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X