SYMPTOMS
When you try to use the
MemoryStream class to read a memory stream in a Microsoft Visual C# .NET 2003 project, you may receive an error message that is similar to one of the following:
Unhandled Exception: System.Xml.XmlException: The root element is missing.
Unhandled Exception: System.IO.SomeStreamException: The memory stream is at the end of the buffer.
Unhandled Exception: System.IO.SomeReaderException: The reader cannot read anymore.