I am trying to deserialize a stream but I always get this error \"End of Stream encountered before parsing was completed\"?
Here is the code:
In my case I used:
stream.Seek(0, SeekOrigin.Begin);
after i serialized the stream, and before i deserialized the stream works charm. hope this helps!