Before you deserialize, try dumping the information you receive to a trace log. In all cases where I have seen this, I have been receiving an error message of some kind instead of the serialized object. Then when the BinaryFormatter tries to deserialize the object, it incorrectly mistakes some text or corrupted data as a version number. Jerry Bullard Information Services & Technology Mary Kay, Inc.
-----Original Message----- From: Andrew Gayter [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 1:50 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Serialization Problem It looks like you're either not serializing it correctly, or you're deserializing on a different machine? Change to a SOAP/XML formatter and dump the received stream to a file, or debug - check it out and make sure it's okay. > -----Original Message----- > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of dotnetminer > Sent: 29 October 2003 05:34 > To: [EMAIL PROTECTED] > 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 DevelopMentorR http://www.develop.com NEW! > ASP.NET courses you may be interested in: > > 2 Days of ASP.NET, 29 Sept 2003, in Redmond > http://www.develop.com/courses/2daspdotnet > > Guerrilla ASP.NET, 13 Oct 2003, in Boston > http://www.develop.com/courses/gaspdotnet > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== 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: <-
