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

在位置 0 处没有任何行。

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

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

源错误:


行 49:                 <div class="hrBox2">
行 50:                     <h1>
行 51:                         <%=dt.Rows[0]["Title"].ToString() %></h1>
行 52:                     <ul>
行 53:                         <li><span>发布日期</span><%=dt.Rows[0]["PostTime"].ToFormatDate() %></li>

源文件: e:\web\大同中百\web\hrArticle.aspx    行: 51

堆栈跟踪:


[IndexOutOfRangeException: 在位置 0 处没有任何行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +3124207
   System.Data.RBTree`1.get_Item(Int32 index) +16
   System.Data.DataRowCollection.get_Item(Int32 index) +16
   ASP.hrarticle_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\web\大同中百\web\hrArticle.aspx:51
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


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