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 gentlebenthebear, Today, 01:30 AM
    0 responses
    2 views
    0 likes
    Last Post gentlebenthebear  
    Started by samish18, Yesterday, 08:31 AM
    2 responses
    9 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by Mestor, 03-10-2023, 01:50 AM
    16 responses
    389 views
    0 likes
    Last Post z.franck  
    Started by rtwave, 04-12-2024, 09:30 AM
    4 responses
    31 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    30 views
    0 likes
    Last Post yertle
    by yertle
     
    Working...
    X