I’m experiencing a similar issue with the returns after an upgrade to 3.2 where after choosing any order line item and clicking the Return Selected Items button getting the following error:
Server Error in '/' Application.
Type 'BVSoftware.Bvc5.Core.Utilities.DirtyTrackableCollection`1[[BVSoftware.Bvc5.Core.Orders.LineItemInput, BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null]]' in Assembly 'BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException: Type 'BVSoftware.Bvc5.Core.Utilities.DirtyTrackableCollection`1[[BVSoftware.Bvc5.Core.Orders.LineItemInput, BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null]]' in Assembly 'BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SerializationException: Type 'BVSoftware.Bvc5.Core.Utilities.DirtyTrackableCollection`1[[BVSoftware.Bvc5.Core.Orders.LineItemInput, BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null]]' in Assembly 'BVSoftware.Bvc5.Core, Version=5.3.2.20, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +2271925
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +245
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +88
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +161
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +46
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +504
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +489
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +131
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) +12
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +2849
[ArgumentException: Error serializing value 'BVSoftware.Bvc5.Core.Orders.Order' of type 'BVSoftware.Bvc5.Core.Orders.Order.']
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +3056
System.Web.UI.ObjectStateFormatter.Serialize(Stream outputStream, Object stateGraph) +126
System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +52
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object state) +4
System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter, Object stateGraph) +37
System.Web.UI.HiddenFieldPageStatePersister.Save() +106
System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) +82
System.Web.UI.Page.SaveAllState() +552
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1676
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832