I'm getting the below serialization error when I try to save my workspace, but I can't figure out from that error what it is in my indicator that is causing the error. My indicator has a windows form in it, I'm guessing its got something to do with that, but is there any way to track down more accurately what the cause might be?
Thanks,
Will.
2014-05-18 16:55:35:802 Gui.Chart.ChartControl.SaveToXml: indicator=NinjaTrader.Indicator.WillsBacktestAssis t: System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0272: The property or indexer 'NinjaTrader.Indicator.WillsBacktestAssist.CursorP osition' cannot be used in this context because the set accessor is inaccessible
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at NinjaTrader.Cbi.XmlSerializerDictionary.get_Item(T ype type)
at NinjaTrader.Cbi.Serializer.Serialize()
at NinjaTrader.Gui.Chart.ChartControl.SaveToXml(XmlDo cument doc, XmlElement element, String[] elements, Boolean asTemplate)
Comment