Can't Figure this out!!!! Server Error in '/' Application.

ibrahima

New member
Joined
Nov 13, 2003
Messages
1
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"))
 
Hello,

The possible reason for this error may be that tour.xml is not included in your application or is not there in the application path folders.

Regards,
 
I think the error is that the Xml file you are trying to read is not well formed, that is it doesnot follow the standards of XML., try to open it in internet explorer see if it fully opens with no errors..
 
Back
Top