“/”应用程序中的服务器错误。

缺少根元素。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Xml.XmlException: 缺少根元素。

源错误:


行 8:      {
行 9:          //在应用程序启动时运行的代码
行 10:         IVYPub.Utils.DBUtil.LoadVisit();
行 11:         timer = new System.Timers.Timer(120000);
行 12:         timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);

源文件: d:\170Website\website\ivy.org\IVY_PUB\Global.asax    行: 10

堆栈跟踪:


[XmlException: 缺少根元素。]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +88
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1383
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +160
   System.Xml.XmlDocument.Load(XmlReader reader) +135
   System.Xml.XmlDocument.Load(String filename) +147
   IVYPub.Utils.DBUtil.get_VisitDoc() in D:\My_Project\Magzine\Publisher\IVYPub.Library\Utils\DBUtil.cs:106
   IVYPub.Utils.DBUtil.LoadVisit() in D:\My_Project\Magzine\Publisher\IVYPub.Library\Utils\DBUtil.cs:114
   ASP.global_asax.Application_Start(Object sender, EventArgs e) in d:\170Website\website\ivy.org\IVY_PUB\Global.asax:10


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1099.0