Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.IO.FileNotFoundException

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

    System.IO.FileNotFoundException

    Greetings!

    I have been running strategy optimizations with NT7b19, and last night I made some changes in the strategy, compiled, and saved and the strategy is still being optimized as I type. NT is still responsive. I saved the strategy on a new name to do some other small changes, and with only an attempt to compile, I have the following:

    Date,Category,Message,
    8/3/2010 9:45:38 AM,Default,Unable to retrieve type info for 'NinjaTrader.Strategy.Aardvark1_16_FX' from assembly
    'NinjaTrader.Custom': System.IO.FileNotFoundException: Could not load file or assembly 'NinjaTrader.Custom' or one of its dependencies.
    The system cannot find the file specified.
    File name: 'NinjaTrader.Custom'
    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
    at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
    at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
    at NinjaTrader.Cbi.AssemblyDictionary.get_Item(String name)
    at NinjaTrader.Cbi.AssemblyDictionary.GetType(String name)
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


    'NinjaTrader.Custom': is not used in the strategy at all. There is no error section at the bottom of the strategy as there is when there are compile errors. 'NinjaTrader.Custom.dll' and 'NinjaTrader.Custom.xml are in the /bin/Custom folder with timestamps during time of compile attempts.

    Input is appreciated,
    Jon

    #2
    Jon, thanks for reporting in - so you're NS files are all compiling fine without issues? Would you see the same error after a fresh startup, so all DLL's are reloaded?

    In addition, please send me your log / trace files via Help > Mail to Support so I can review them.

    Thanks for the support.

    Comment


      #3
      Bertrand,

      Thanks for the response. I have no errors reported when compiling the strategies, as far as seeing anything on the bottom of the editor window. There is a pop box that opens with the information that I included in this thread.

      It might be late today before I can do a restart (after optimization is done). I will try that, I was expecting to have to restart, but I was hopes that there was another solution.

      Jon

      Comment


        #4
        Hi Jon, are you by any chance working with the debug mode in the NinjaScript editor? Could you please ensure this is turned off and then recompile your files and recheck?

        Comment


          #5
          Bertrand,

          Debug is not enabled. That was an interesting potential solution! lol

          Issue was resolved as soon as I aborted the optimization. I was able to do further optimization and compiles, without generating that error again, without making any other changes.

          Thanks!
          Jon

          Comment


            #6
            Ok, thanks for reporting back - please let me know if it comes up again.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            601 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            347 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            559 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X