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 f.saeidi, Today, 12:14 PM
    4 responses
    11 views
    0 likes
    Last Post f.saeidi  
    Started by ZenCortexHurry, Today, 01:07 PM
    0 responses
    4 views
    0 likes
    Last Post ZenCortexHurry  
    Started by ZenCortexHurry, Today, 01:04 PM
    0 responses
    4 views
    0 likes
    Last Post ZenCortexHurry  
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 12:55 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X