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

Index was outside the bounds of the array.

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

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

原始程式錯誤:


行 28:                 MapJS.Text += "$(window).ready(function () {\n";
行 29:                 MapJS.Text += "$('#map').tinyMap({\n";
行 30:                 MapJS.Text += "'center': ['" + center[0].Trim() + "', '" + center[1].Trim() + "'],\n";
行 31:                 MapJS.Text += "'zoom': 7,\n";         
行 32:                 MapJS.Text += "'marker': [\n";

原始程式檔: e:\web\newgobytrain_v2\webc\html\train\02-1.aspx.cs    行: 30

堆疊追蹤:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   webc_html_train_02_1.Page_Load(Object sender, EventArgs e) in e:\web\newgobytrain_v2\webc\html\train\02-1.aspx.cs:30
   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