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

在位置 0 处没有任何行。

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

异常详细信息: System.IndexOutOfRangeException: 在位置 0 处没有任何行。

源错误:


行 20:     DataTable dtlist = Tools.GetDataSet("select top 3 * from V_C_khcase where isdel=0 and flowstate=99 and nodecode='" + strm + "' and iscommand='1' order by AddDate desc");
行 21:     //下一篇
行 22:     DataTable dtup = Tools.GetDataSet("select top 1 ID,Title from V_C_khcase where  AddDate<'" + dtinfo.Rows[0]["AddDate"] + "' and nodecode='" + strm + "' and SiteID=1 and IsDel=0 and FlowState=99 order by AddDate  desc");
行 23:     //上一篇
行 24:     DataTable dton = Tools.GetDataSet("select top 1 ID,Title from V_C_khcase where  AddDate>'" + dtinfo.Rows[0]["AddDate"] + "' and nodecode='" + strm + "' and SiteID=1 and IsDel=0 and FlowState=99 order by AddDate asc");

源文件: d:\R-容大\template\khcaseshow.aspx    行: 22

堆栈跟踪:


[IndexOutOfRangeException: 在位置 0 处没有任何行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2019587
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   ASP.template_khcaseshow_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\R-容大\template\khcaseshow.aspx:22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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