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




Reply With Quote