T
Thomas T. Veldhouse
Hello.
I have been working with a client of mine on their seriazation code and we
seem to have run into an issue when we migrated from .NET 1.1 to .NET 2.0. We
have a framework of business objects that are serialized for persistant
storage. The object graph DOES change as development continues, but it is
required that we be able to deserialized existing classes and handle it
properly (version tolerance). With version 1.1 of the .NET framework, we were
able to create a custom formatter that used a custom SerializationSurrogate
and a custom SerializationBinder (as well as using
FormatterAssemblyStyle.Simple) to get this to work properly. Since, that
time, we have migrated to version 2.0 of the .NET framework, and now we are
finding that we can no longer take this approach due to an apparent, but
intended, defect in the serialization code of 2.0. Since many of the
assemblies in our framework are signed and strong-named (needed for use with
COM and Sharepoint), .NET is now simply ignoreing our request to use
FormatterAssemblyStyle.Simple.
Does anybody know of a way around this? I am fearful we are going to have to
roll our own serialization code that isn't based on .NET seriazation, which is
a horrific waste of our time.
Thank you in advance,
I have been working with a client of mine on their seriazation code and we
seem to have run into an issue when we migrated from .NET 1.1 to .NET 2.0. We
have a framework of business objects that are serialized for persistant
storage. The object graph DOES change as development continues, but it is
required that we be able to deserialized existing classes and handle it
properly (version tolerance). With version 1.1 of the .NET framework, we were
able to create a custom formatter that used a custom SerializationSurrogate
and a custom SerializationBinder (as well as using
FormatterAssemblyStyle.Simple) to get this to work properly. Since, that
time, we have migrated to version 2.0 of the .NET framework, and now we are
finding that we can no longer take this approach due to an apparent, but
intended, defect in the serialization code of 2.0. Since many of the
assemblies in our framework are signed and strong-named (needed for use with
COM and Sharepoint), .NET is now simply ignoreing our request to use
FormatterAssemblyStyle.Simple.
Does anybody know of a way around this? I am fearful we are going to have to
roll our own serialization code that isn't based on .NET seriazation, which is
a horrific waste of our time.
Thank you in advance,