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

在位置 0 处没有任何行。

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

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

源错误:


行 22:             <h2 class="R_h2"><span>您所在的位置:<a href="Index.aspx">首页</a>> <a href="Bills.aspx?oId=">订单信息</a> > <a href="Price.aspx?pId=1">当前价格</a></span>当前价格</h2>
行 23:             <div class="price_xx">
行 24:                 <%=dt.Rows[0]["ProvincePrice"].ToString() %>
行 25:             </div>
行 26:         </div>

源文件: e:\WebData\SBDnew\sbd\SBD\Price_Check2.aspx    行: 24

堆栈跟踪:


[IndexOutOfRangeException: 在位置 0 处没有任何行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2430513
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   ASP.price_check2_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\WebData\SBDnew\sbd\SBD\Price_Check2.aspx:24
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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