Hi all,
Im completely stuck on this. Im trying to read in an xml file & get this error.
Can someone pls help??
Server Error in / Application.
--------------------------------------------------------------------------------
This is an unexpected token. The expected token is EQUALS. Line 201, position 5.
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: This is an unexpected token. The expected token is EQUALS. Line 201, position 5.
Source Error:
Line 15:
Line 16: read in the xml file
Line 17: TourDataSet.ReadXML(Server.MapPath("tour.xml"))
Line 18:
Line 19: showTable = TourDataSet.Tables("show")
Source File: e:\inetpub\wwwroot\...somewhere..\tour_main.aspx Line: 17
Stack Trace:
[XmlException: This is an unexpected token. The expected token is EQUALS. Line 201, position 5.]
System.Xml.XmlScanner.ScanToken(Int32 expected) +140
System.Xml.XmlTextReader.SetLiteralValues(XmlAttributeTokenInfo fld) +28
System.Xml.XmlTextReader.SetAttributeValues() +206
System.Xml.XmlTextReader.ParseElement() +138
System.Xml.XmlTextReader.Read() +94
System.Xml.XmlLoader.LoadChildren(XmlNode parent) +33
System.Xml.XmlLoader.LoadElementNode() +144
System.Xml.XmlLoader.LoadCurrentNode() +38
System.Xml.XmlLoader.ReadCurrentNode(XmlDocument doc, XmlReader reader) +92
System.Xml.XmlDocument.ReadNode(XmlReader reader) +51
System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) +1224
System.Data.DataSet.ReadXml(String fileName) +63
ASP.tour_main_aspx.WriteTourDates() in e:\inetpub\wwwroot\.....somewhere....\tour_main.aspx:17
ASP.tour_main_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in e:\inetpub\wwwroot\....somewhere....\tour_main.aspx:137
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
The error is in Line 17: TourDataSet.ReadXML(Server.MapPath("tour.xml"))
Im completely stuck on this. Im trying to read in an xml file & get this error.
Can someone pls help??
Server Error in / Application.
--------------------------------------------------------------------------------
This is an unexpected token. The expected token is EQUALS. Line 201, position 5.
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: This is an unexpected token. The expected token is EQUALS. Line 201, position 5.
Source Error:
Line 15:
Line 16: read in the xml file
Line 17: TourDataSet.ReadXML(Server.MapPath("tour.xml"))
Line 18:
Line 19: showTable = TourDataSet.Tables("show")
Source File: e:\inetpub\wwwroot\...somewhere..\tour_main.aspx Line: 17
Stack Trace:
[XmlException: This is an unexpected token. The expected token is EQUALS. Line 201, position 5.]
System.Xml.XmlScanner.ScanToken(Int32 expected) +140
System.Xml.XmlTextReader.SetLiteralValues(XmlAttributeTokenInfo fld) +28
System.Xml.XmlTextReader.SetAttributeValues() +206
System.Xml.XmlTextReader.ParseElement() +138
System.Xml.XmlTextReader.Read() +94
System.Xml.XmlLoader.LoadChildren(XmlNode parent) +33
System.Xml.XmlLoader.LoadElementNode() +144
System.Xml.XmlLoader.LoadCurrentNode() +38
System.Xml.XmlLoader.ReadCurrentNode(XmlDocument doc, XmlReader reader) +92
System.Xml.XmlDocument.ReadNode(XmlReader reader) +51
System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) +1224
System.Data.DataSet.ReadXml(String fileName) +63
ASP.tour_main_aspx.WriteTourDates() in e:\inetpub\wwwroot\.....somewhere....\tour_main.aspx:17
ASP.tour_main_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in e:\inetpub\wwwroot\....somewhere....\tour_main.aspx:137
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
The error is in Line 17: TourDataSet.ReadXML(Server.MapPath("tour.xml"))