dayan00000 2014-10-30 02:38 采纳率: 0%
浏览 2074

iis 网站发布时,出现的错误提示。

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

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

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

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[XmlException: 缺少根元素。]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +95
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +5091845
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
System.Xml.XmlDocument.Load(XmlReader reader) +134
System.Xml.XmlDocument.LoadXml(String xml) +123
NTRdrBookRetr.GetAllBookInfo(String strKeyValue, String strSortType, String strCondition, String strSort, String strStartYear, String strEndYear, String strPublisher, String strAuthorer, Int32 nStart, Int32 nPageNum, String strVip) +23859
NTRdrBookRetr.GetAllBookInfo(String strKeyValue, String strSortType, String strCondition, String strSort, Int32 nStart, Int32 nPageNum) +88
NTRdrBookRetr.Page_Load(Object sender, EventArgs e) +1819
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本信息: Microsoft .NET Framework 版本:2.0.50727.5420; ASP.NET 版本:2.0.50727.5420

  • 写回答

1条回答 默认 最新

  • feiyun0112 2014-10-30 03:00
    关注

    GetAllBookInfo 23859行代码有问题,生成的xml不对

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器