Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X