[2.0] Deserialization via NetworkStream?
Hi, I am trying to make a simple Client \ Server application.
I have created 3 projects, DocumentServer, DocumentClient and DocumentLibrary
DocumentServer accepts requests from DocumentClients and they both share common objects from DocumentLibrary
I want to send an object, "Document" created by DocumentClient to DocumentServer, the class "Document" is Serializable and can be sent via a Network Stream to the DocumentServer
The problem occurs when the document is Deserialized on the DocumentServer. I get the following error....
System.Runtime.Serialization.SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.
Any ideas?
Thanks
Rohan
Re: [2.0] Deserialization via NetworkStream?
I think we'd need to see the send and receive code, unless someone else has encountered this specific error before.