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 Davide999, 05-18-2023, 03:55 AM
    4 responses
    556 views
    1 like
    Last Post kcwasher  
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rexsole, Today, 08:39 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    6 responses
    29 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by gbourque, Today, 06:39 AM
    2 responses
    14 views
    0 likes
    Last Post gbourque  
    Working...
    X