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

輸入字串格式不正確。

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

例外狀況詳細資訊: System.FormatException: 輸入字串格式不正確。

原始程式錯誤:


行 48:             Dim GroupArea As New SearchValue.GroupID
行 49:             GroupArea.GroupID = 2
行 50:             GroupArea.IDs.AddRange(Request("Area").Split(",").Select(Function(s) CInt(s)))
行 51:             HtmlProduct.SearchValue.GroupClasses.Add(GroupArea)
行 52:         End If

原始程式檔: D:\網頁\WebRWD\AzureTech\Product.aspx.vb    行: 50

堆疊追蹤:


[FormatException: 輸入字串格式不正確。]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +308
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +100

[InvalidCastException: 從字串 "13%2C47%2C6" 至類型 'Integer' 的轉換是無效的。]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +284
   Product._Lambda$__1(String s) in D:\網頁\WebRWD\AzureTech\Product.aspx.vb:50
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +78
   System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) +328
   Product.Page_Load(Object sender, EventArgs e) in D:\網頁\WebRWD\AzureTech\Product.aspx.vb:50
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +11751536
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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