Server Error in '/' Application.

Root element is missing.

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: Root element is missing.

Source Error:


Line 547:        objOffer.strFile = "UNQOFFER";
Line 548:        string xmlNodes = objOffer.RandomXml(objOffer, "FlightOffer");
Line 549:        aXmldoc.LoadXml(xmlNodes);
Line 550:        objMkp.Folder = Folder;
Line 551:        objMkp.xmlResult = aXmldoc.OuterXml;

Source File: d:\Hosting\cheapflights.benztravel.co.uk\index.aspx.cs    Line: 549

Stack Trace:


[XmlException: Root element is missing.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +88
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1560
   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
   benztravel_index.BindUinqueOffer() in d:\Hosting\cheapflights.benztravel.co.uk\index.aspx.cs:549
   benztravel_index.getOffer() in d:\Hosting\cheapflights.benztravel.co.uk\index.aspx.cs:535
   benztravel_index.Page_Load(Object sender, EventArgs e) in d:\Hosting\cheapflights.benztravel.co.uk\index.aspx.cs:210
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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