Open odyth opened 6 years ago
It looks caused by changing default date time serializer between 0.9 to 1.0. This change was intended to improve interoperability for other languages which uses ext-typed timestamp for datetime like values.
You can avoid this error by one of following:
SerializationContext.Default.CompatibilityOptions.PackerCompatibilityOptions &= ~PackerCompatibilityOptions.ProhibitExtendedTypeObjects
SerializationContext.Default.DefaultDateTimeConversionMethod = DateTimeConversionMethod.Native
I will also add context options to change behavior to 0.9 for compatibility in 1.1.
I have an object that doesn't extend from anything yet when I updated from 0.9.2 to 1.0.0 I get "ExtendedTypeObject is prohibited in this packer." when trying to pack an object. My object isn't anything fancy just strings, ints, and datetimes.
I am using .net 4.7.2 and below is how I am trying to pack an object.
Here is the object I am trying to pack.
Stacktrace of exception