Article ID: 888226 - Last Review: December 3, 2007 - Revision: 1.2 You receive an unhandled exception error message when you use the MemoryStream class in the .NET Framework 1.1 Service Pack 1On This PageSYMPTOMSWhen 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. CAUSEThis behavior occurs if the following conditions are true:
WORKAROUNDTo work around this behavior, reset the stream position before you create the XmlTextReader class. For an example, see the "More Information" section. MORE INFORMATIONSteps to reproduce the behavior
| Article Translations
|
Back to the top
