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

在位置 0 处没有任何行。

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

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

源错误:


行 116:        DataTable dt = DB.GetDataTable("s_name", "tab_bingchonghai", "s_oname='" + name + "'", "");
行 117:        if (dt != null || dt.Rows.Count > 0)
行 118:            Bingchonghai = dt.Rows[0]["s_name"].ToString();
行 119:        return Bingchonghai;
行 120:    }

源文件: d:\web\www.1988.tv\nonghuapindao\m.1988.tv\Hb_Bingchonghai\Bingchonghainews.aspx.cs    行: 118

堆栈跟踪:


[IndexOutOfRangeException: 在位置 0 处没有任何行。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1548274
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   Hb_Bingchonghai_Bingchonghainews.GetBingchonghaiName(String name) in d:\web\www.1988.tv\nonghuapindao\m.1988.tv\Hb_Bingchonghai\Bingchonghainews.aspx.cs:118
   ASP.hb_bingchonghai_bingchonghainews_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\www.1988.tv\nonghuapindao\m.1988.tv\Hb_Bingchonghai\Bingchonghainews.aspx:18
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


版本信息: Microsoft .NET Framework 版本:2.0.50727.8000; ASP.NET 版本:2.0.50727.8001