title: End of Stream encountered before parsing was completed?
body: <p>I am trying to deserialize a stream but I always get this error "End of Stream encountered before parsing was completed"?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>        //Some code here
          BinaryFormatter b = new BinaryFormatter();
          return (myObject)b.Deserialize(s);//s---&gt; is a Stream object that has been fill up with data some line over here
  </code></pre>
  
  <p>Any one have ideas?</p>