Is there a way to open files with .net 1.1 versions of my software product
that were serialized with a .net 2.0 version of same product? Right now, as
soon as my older .net 1.1 application tries to read the stream, an exception
is thrown. The code to read the stream looks like this:
BinaryFormatter bf = new BinaryFormatter();
bf.AssemblyFormat = FormatterAssemblyStyle.Simple;
IFormatter formatter = bf;
FileStream stream = new FileStream(this.fileName, FileMode.Open,
FileAccess.Read, FileShare.Read);
object list = formatter.Deserialize(stream);
stream.Close();
the objects being serialized all have the [Serializable] attribute and are
serialized with ISerializable.GetObjectData and deserialized with the
special object constructor with the SerializationInfo and StreamingContext
parameters.
Thanks,
Dennis