I can use the BinaryFormatter to save the model, but I cannot use it to load models. I keep getting this error:
at System.Runtime.Serialization.Formatters.Binary.Bin aryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.Obj ectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.Obj ectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream serializationStream)
at NinjaTrader.NinjaScript.Indicators.Accord.PivotFin der.ExecuteCommand(String command) in c:\Users\Greg\Documents\NinjaTrader 8\bin\Custom\Indicators\Accord\PivotFinder.cs:line 372
at NinjaTrader.NinjaScript.Indicators.Accord.PivotFin der.TextBox_PreviewKeyDown(Object sender, KeyEventArgs e) in c:\Users\Greg\Documents\NinjaTrader 8\bin\Custom\Indicators\Accord\PivotFinder.cs:line 278
Anyone have any ideas?
Comment