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

Index was outside the bounds of the array.

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

例外狀況詳細資訊: System.IndexOutOfRangeException: Index was outside the bounds of the array.

原始程式錯誤:


行 101:                        string productItemId2 = Request.QueryString["num"];
行 102:                        string[] tmp2 = productItemId2.Split('_');
行 103:                        if (tmp.Count() > 1) { productItemId2 = tmp2[0] + "_" + tmp2[1]; }
行 104:
行 105:                        if (productItemId == productItemId2)

原始程式檔: e:\web\newgobytrain_v2\webc\html\tickets\03-2.aspx.cs    行: 103

堆疊追蹤:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   webc_html_tickets_03_2.initData(String num) in e:\web\newgobytrain_v2\webc\html\tickets\03-2.aspx.cs:103
   webc_html_tickets_03_2.Page_Load(Object sender, EventArgs e) in e:\web\newgobytrain_v2\webc\html\tickets\03-2.aspx.cs:62
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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