i was running my strategy today for testing purpose when an error occured , such of not enough space available on disk. I have re installed ninja ,created a new windows profile, restarded windows etc... and i still have the same error at launch : Unable to open log file 'C:\Users\....'
The path is correct, there are no log file in it, i can create some manually,
I have also made my user proprietary of the ninja folder in users\Documents, but i still have the same error.
In event viewer when the first error occured during my strategy test:
"System.IO.DirectoryNotFoundException
à System.IO.__Error.WinIOError(Int32, System.String)
à System.IO.FileSystemEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].CommonInit()
à System.IO.FileSystemEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.String, System.String, System.String, System.IO.SearchOption, System.IO.SearchResultHandler`1<System.__Canon>, Boolean)
à System.IO.Directory.GetFiles(System.String, System.String)
à NinjaTrader.Cbi.Log.CreateLogThread()
à NinjaTrader.Cbi.Log.Process(System.Type, System.String, System.Object[], NinjaTrader.Cbi.LogLevel, NinjaTrader.Cbi.LogCategories, System.String, NinjaTrader.Cbi.User, NinjaTrader.Cbi.Account, System.DateTime)
à NinjaTrader.Cbi.Log.Process(System.Type, System.String, System.Object[], NinjaTrader.Cbi.LogLevel, NinjaTrader.Cbi.LogCategories)
à NinjaTrader.AppHelper+<>c__DisplayClass0_0.<OnStar tup>b__0(System.Object)
à System.Threading.ExecutionContext.RunInternal(Syst em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
à System.Threading.ThreadPoolWorkQueue.Dispatch()
"
Now when there is an error on launch :
"
System.UnauthorizedAccessException
à System.IO.__Error.WinIOError(Int32, System.String)
à System.IO.FileStream.WriteCore(Byte[], Int32, Int32)
à System.Xml.XmlUtf8RawTextWriter.FlushBuffer()
à System.Xml.XmlUtf8RawTextWriter.Flush()
à System.Xml.XmlWellFormedWriter.Close()
à System.Xml.XmlWriter.Dispose(Boolean)
à System.Xml.Linq.XDocument.Save(System.String, System.Xml.Linq.SaveOptions)
à NinjaTrader.AppHelper+<>c__DisplayClass0_0.<OnStar tup>b__0(System.Object)
à System.Threading.ExecutionContext.RunInternal(Syst em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
à System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
à System.Threading.ThreadPoolWorkQueue.Dispatch()
"
Thanks for your help
Comment