Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error compiling export assembly

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

    Error compiling export assembly

    Hey guys!

    I'm trying to export some of my strategies with the added CliSecure protection, but I'm having some trouble. Whenever I try to export one of my custom strategies I get a message saying "Error compiling export assembly. Please check your logs," so I go check the logs and I get the following error:

    Code:
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(52,13) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(58,13) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(69,21) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(86,17) : error CS0103: The name 'log' does not exist in the current context
    That EDStrategyCommon is a strategy that is used by all of my other custom ones (I include it when trying to export other ones).

    Something strange however, is that when I try to compile ALL of my strategies and indicators into one zip file, I don't get that error message! Maybe it has to do with adding some other strategies besides the EDStrategyCommon one, but how do I know which ones? Has anyone else encountered this error before or knows how to fix it?

    Thanks in advance for the help!

    Ezequiel
    Last edited by equimen; 05-26-2012, 02:26 PM.

    #2
    Originally posted by equimen View Post
    Hey guys!

    I'm trying to export some of my strategies with the added CliSecure protection, but I'm having some trouble. Whenever I try to export one of my custom strategies I get a message saying "Error compiling export assembly. Please check your logs," so I go check the logs and I get the following error:

    Code:
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(52,13) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(58,13) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(69,21) : error CS0103: The name 'log' does not exist in the current context
    5/26/2012 3:04:36 PM|2|4|Error compiling export assembly: c:\Users\XXXXXXX\Documents\NinjaTrader 7\bin\Custom\Strategy\EDStrategyCommon.cs(86,17) : error CS0103: The name 'log' does not exist in the current context
    That EDStrategyCommon is a strategy that is used by all of my other custom ones (I include it when trying to export other ones).

    Something strange however, is that when I try to compile ALL of my strategies and indicators into one zip file, I don't get that error message! Maybe it has to do with adding some other strategies besides the EDStrategyCommon one, but how do I know which ones? Has anyone else encountered this error before or knows how to fix it?

    Thanks in advance for the help!

    Ezequiel
    You have a function or variable called "log" that you have tried to call while it was not defined in any of the classes that are the files that you are trying to export.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X