Thomas is right, first of all check if the bug is in the serialization or in the transission.
You can see this: try to deserialize your object just after you have serialized it (in the 'client') and before sending it. This will help to localize the bug. To give you an idea, the code follow. HTH (luKa) http://nullabletypes.sourceforge.net/ ------------------------ [nu.Test] public void SerializationTest() { NullableInt32 serializedDeserialized; serializedDeserialized = SerializeDeserialize(_null); nua.Assert("TestA#01", _null.Equals(serializedDeserialized)); } private NullableInt32 SerializeDeserialize(NullableInt32 x) { System.Runtime.Serialization.Formatters.Soap.SoapFormatter serializer = new System.Runtime.Serialization.Formatters.Soap.SoapFormatter(); using (sys.IO.MemoryStream stream = new sys.IO.MemoryStream()) { serializer.Serialize(stream, x); sys.Text.Decoder d = sys.Text.Encoding.Default.GetDecoder(); stream.Seek(0, sys.IO.SeekOrigin.Begin); // Return stream to start NullableInt32 y = (NullableInt32)serializer.Deserialize(stream); stream.Close(); return y; } } ------------------------ <[EMAIL PROTECTED]> wrote: >By fixing your programming error. > >At some point in the serialization/eserialization/transfer process you >seem to loose/chagne/gargabe the data. > >That simple. > >Sorry if this is not helpful, but with the innformation given this is >the only hadvice I can give you. Serialization DOES work, so you must do >something with the data on the transfer. > >Thomas Tomiczek >THONA Software & Consulting Ltd. >(Microsoft MVP C#/.NET) > >-----Original Message----- >Sent: Mittwoch, 29. Oktober 2003 06:34 >Subject: [ADVANCED-DOTNET] Serialization Problem > >I am serializing an object and sending it through networkstream to >another computer. However when i try to deserialize it, it is giving me >a error "BinaryFormatter Version incompatibility. Expected Version 1.0 >Recieved version 1566270836.0" > >I am using socket programming and not remoting. I am creating the >application on a stand alone machine having only one version of .NET >framework. >How can i resolve this error? > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com >>> Error in line 16 of ADVANCED-DOTNET.MAILTPL: unknown formatting command <<< -> .NET courses you may be interested in: <-