Server Error in '/WebApps/NNTMA' Application.

Data at the root level is invalid. Line 1, position 1.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

Source Error:


Line 220:        Dim block As String
Line 221:        Dim vehicle As String
Line 222:        While XmlReader.Read()
Line 223:         
Line 224:            If XmlReader.NodeType.ToString() = "Element" Then

Source File: C:\inetpub\wwwroot\WebApps\NNTMA\directions.aspx    Line: 222

Stack Trace:


[XmlException: Data at the root level is invalid. Line 1, position 1.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +73
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +121
   System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() +5367314
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +488
   System.Xml.XmlTextReaderImpl.Read() +151
   System.Xml.XmlTextReader.Read() +15
   ASP.directions_aspx.DisplayVehicles() in C:\inetpub\wwwroot\WebApps\NNTMA\directions.aspx:222
   ASP.directions_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\WebApps\NNTMA\directions.aspx:348
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3928.0