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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[XmlException: Root element is missing.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +87
   System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) +109
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1907109
   System.Xml.XmlTextReaderImpl.Read() +38
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +145
   System.Xml.XmlDocument.Load(XmlReader reader) +96
   System.Xml.XmlDocument.LoadXml(String xml) +194
   DeHavilland.DHServer.DHDefn4.DefnSearch.set_XML(String Value) in T:\Backend Projects\DHServer\DHServer.Net 2.0\DHDefns\DefnSearch2.vb:399
   DeHavilland.DHServer.GenericFunctions.Searches.SelectSearch(Int64 ID) in T:\Backend Projects\DHServer\DHServer.Net 2.0\GenericServices\Searches.vb:123

[ApplicationException: Expection encountered when executing command.]
   DeHavilland.DHServer.GenericFunctions.Searches.SelectSearch(Int64 ID) in T:\Backend Projects\DHServer\DHServer.Net 2.0\GenericServices\Searches.vb:139
   Adfero.ConsumerNews.WebControls.Base.CNBase.get_DataSource() in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:184

[Exception: error: CNBase/Datasource() - SearchID='1165146' may not exist!]
   Adfero.ConsumerNews.WebControls.Base.CNBase.get_DataSource() in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:198
   Adfero.ConsumerNews.WebControls.Public.GenericItemListingPhoto.CreateSubChildControls2(ControlCollection& ControlsToRender) in T:\Web Projects\ConsumerNewsWebControls\Current Version\PublicControls\GenericItemListingPhoto.vb:154
   Adfero.ConsumerNews.WebControls.Adapters.CNLayoutBoxAdapter1.CreateChildControls() in T:\Web Projects\ConsumerNewsWebControls\Current Version\PrivateControls\Adapters\CNLayoutBoxAdapter1.vb:174
   System.Web.UI.Control.EnsureChildControls() +128
   System.Web.UI.WebControls.CompositeControl.DataBind() +38
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   Adfero.ConsumerNews.WebControls.Base.CNBase.CNBase_Load(Object sender, EventArgs e) in T:\Web Projects\ConsumerNewsWebControls\Current Version\BaseControls\CNBase.vb:845
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +12
   System.Web.UI.Control.LoadRecursive() +2067081
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42