'/' 應用程式中發生伺服器錯誤。

位置 0 沒有資料列。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.IndexOutOfRangeException: 位置 0 沒有資料列。

原始程式錯誤:


行 202:            //標題顯示成分類名稱 *& 麵包屑加上分類名稱
行 203:            Literal ltTitle = ((Literal)gsMaster.FindControl("ltTitle"));
行 204:            ltTitle.Text = CharSetConverter.ToSimplified(vsDt.Rows[0]["title"].ToString());
行 205:            Literal ltPath = (Literal)gsMaster.FindControl("ltPath");
行 206:            ltPath.Text = ltPath.Text + " &gt; <a href=\"" + gsMaster.gsMenu.Url.Replace(".aspx", "_1.aspx") + "?id=" + WFSecurity.GetSafeHtml(vsDt.Rows[0]["menuID"].ToString()) + "&cid=" + WFSecurity.GetSafeHtml(vsDt.Rows[0]["classifyID"].ToString()) + "&cchk=" + WFSecurity.GetSafeHtml(vsDt.Rows[0]["secureChk"].ToString()) + "\">" + CharSetConverter.ToSimplified(vsDt.Rows[0]["title"].ToString()) + "</a>";

原始程式檔: c:\inetpub\vhosts\plbtw.com\httpdocs\Web\GB\story_2_2_1_in.aspx.cs    行: 204

堆疊追蹤:


[IndexOutOfRangeException: 位置 0 沒有資料列。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2140712
   System.Data.DataRowCollection.get_Item(Int32 index) +22
   GB_story_2_2_1_in.GetData() in c:\inetpub\vhosts\plbtw.com\httpdocs\Web\GB\story_2_2_1_in.aspx.cs:204
   GB_story_2_2_1_in.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\plbtw.com\httpdocs\Web\GB\story_2_2_1_in.aspx.cs:51
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0