title: Stream was not readable error
body: <p>I am getting the message <strong>"Stream was not readable"</strong> on the statement:</p>
  
  <pre><code>using (StreamReader sr = new StreamReader(ms))
  </code></pre>
  
  <p>I have tried the tips posted here without success.  Thanks for the help. </p>
  
  <p>This is my code:</p>
  
  <pre><code>XmlSerializer xmlSerializer = new XmlSerializer(typeof(Conflict));
  //Serialize Conflicts array to memorystream as XML
  using (MemoryStream ms = new MemoryStream())
  {
      using (StreamWriter sw = new StreamWriter(ms))
      {
          foreach (Conflict ct in Conflicts)      
              xmlSerializer.Serialize(sw, ct);
  
          sw.Flush(); //Site tip
          ms.Position = 0;  //Site tip
      }
      //Retrieve memory stream to string
      using (StreamReader sr = new StreamReader(ms))
      {
          string conflictXml = String.Format(CultureInfo.InvariantCulture, "{0}&lt;/NewDataSet&gt;",
  </code></pre>