Server Error in '/' Application.

'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.

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: 'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.

Source Error:


Line 322:
Line 323:  XmlDocument doc = new XmlDocument();
Line 324:  doc.LoadXml(filedata);
Line 325:  XmlElement root = doc.DocumentElement;
Line 326:  XmlNodeList listNodes = doc.GetElementsByTagName("item");

Source File: c:\inetpub\wwwroot\NepaliFMVideo\CanadaNepal_Crawler.aspx.cs    Line: 324

Stack Trace:


[XmlException: 'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +88
   System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() +6762783
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +608
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +158
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   System.Xml.XmlDocument.LoadXml(String xml) +182
   Video.ReadXMLFileIntoFirstTable(String filedata, String programName) in c:\inetpub\wwwroot\NepaliFMVideo\CanadaNepal_Crawler.aspx.cs:324
   Video.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\NepaliFMVideo\CanadaNepal_Crawler.aspx.cs:254
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1381


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