> 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?
I assume you are using .NET 1.0 ? There are bugs in .NET 1.0's binary formatter, for example when deserializing structs in object collections (array lists etc.) and as it seems other glitches. I'd suggest to try out .NET 1.1 and see if it works with that, the binary formatter of .NET 1.1 doesn't seem to suffer under the bugs I ran into in .NET 1.0 FB =================================== This list is hosted by DevelopMentorŪ 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