DiffSharp Model.save() and Model.saveState() are not working, getting the following error message:
System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
at DiffSharp.Util.UtilAutoOpens.saveBinary[T](T object, String fileName)
at DiffSharp.Model.ModelBase.saveState(String fileName, FSharpOption`1 noDiff)
at <StartupCode$FSI_0047>.$FSI_0047.main@() in d:MartinCodingF#DiffSharp Example5.fsx:line 2402
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Stopped due to error
Any solution to this?