serializing

  • Thread starter Thread starter Niels Wiederanders
  • Start date Start date
N

Niels Wiederanders

Hello NG,

Im Trying to save some App Data by De-/ Serializing an Object:

Public Function DeSerializeFromByte(ByVal Bytes As Byte()) as
SerializableClass
Dim myObject As SerializableClass
Dim mySerializer As
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter = New
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter()
Dim myMemoryStream As System.IO.MemoryStream = New
System.IO.MemoryStream(Bytes)
myObject = CType(mySerializer.Deserialize(myMemoryStream),
SerializableClass)
myMemoryStream.Close()
Return myObject
End Function

My Problem is, that I have 2 Applications with different Assembly Names. If
I Serialize the Object in App1 then I get an Exception in App2, if I try to
DeSerialize it.

Does anybodey Know how I can DeSerialize a Binary (by not using XML) File to
another Application?

Thanks

Niels Wiederanders
 
Back
Top