Developer forum

Forum » Development » Order Line Clone method

Order Line Clone method

Rui Silva
Reply

Hi,

I've a solution running on 9.4.6 that has a feature calling the Clone method of an existing order line and this is throwing an exception:

System.Runtime.Serialization.SerializationException: Type 'Dynamicweb.Ecommerce.Loyalty.Reward' in Assembly 'Dynamicweb.Ecommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
 at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
 at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
 at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
 at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
 at Dynamicweb.Ecommerce.Orders.OrderLine.Clone()

 

Is this a bug of the method?

Thanks,

Rui Silva

 

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Rui,
this is a bug, thanks for finding. New TFS# 48850 was created.
Regards, Dmitrij

Votes for this answer: 1
 
Rui Silva
Reply

Hi Dmitriy,

Thanks for confirming.

BR,

Rui Silva

 

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Rui

The problem regarding #48850 "SerializationException Loyalty.Reward in OrderLine.Clone method" has now been resolved in Dynamicweb version 9.4.10

To upgrade please choose this version from download:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum