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不对

    评论

报告相同问题?

悬赏问题

  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导