You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at Catel.Runtime.Serialization.Xml.XmlSerializer.BeforeDeserialization(ISerializationContext`1 context)
at Catel.Runtime.Serialization.SerializerBase`1.Deserialize(Object model, ISerializationContext`1 context)
at Catel.Runtime.Serialization.SerializerBase`1.Deserialize(Object model, TSerializationContextInfo serializationContext, ISerializationConfiguration configuration)
at Catel.Runtime.Serialization.SerializerBase`1.Deserialize(Type modelType, Stream stream, ISerializationConfiguration configuration)
at Catel.Runtime.Serialization.ISerializerExtensions.Deserialize[TModel](ISerializer serializer, Stream stream, ISerializationConfiguration configuration)
The only way it currently works is to do the extra step by first converting the data to a string and then passing the string to the deserializer. This may indicate that there is a problem with encoding but I found no option the specify encoding for the serializer.
Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)
Component
ISerializer / XMLSerializer
Version of Library
5.12.22
Version of OS(s) listed above with issue
Win 11
Steps to Reproduce
When directly deserializing a model in Catel through an
ISerializer
with encryption applied the process throws an exception.Serialization Code:
Deserialization Code:
Expected Behavior
The data gets decrypted and deserialized.
Actual Behavior
The serializer throws an Exception.
Stack Trace:
The only way it currently works is to do the extra step by first converting the data to a string and then passing the string to the deserializer. This may indicate that there is a problem with encoding but I found no option the specify encoding for the serializer.
Workaround approach
The text was updated successfully, but these errors were encountered: