Server Error in '/' Application.

輸入字串格式不正確。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: 輸入字串格式不正確。

Source Error:


Line 96:                 Return dt
Line 97:             Catch ex As Exception
Line 98:                 Throw ex
Line 99:             Finally
Line 100:                If IsNothing(ad) = False Then ad.Dispose()

Source File: D:\DotNetSite\gmoto\App_Code\Component\DB\DBUtil.vb    Line: 98

Stack Trace:


[FormatException: 輸入字串格式不正確。]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +13033687
   System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) +135
   System.String.System.IConvertible.ToInt64(IFormatProvider provider) +51
   System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +607
   System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming) +1341

[FormatException: 將參數值從 String 轉換成 Int64 失敗。]
   gmoto.Component.DB.DBUtil.GetDataTable(CommandType command_type, String command_text, SqlParameter[] sql_parameters) in D:\DotNetSite\gmoto\App_Code\Component\DB\DBUtil.vb:98
   gmoto.Component.DB.ProductFDB.GetProductDetail(String id) in D:\DotNetSite\gmoto\App_Code\Component\DB\FrontDB.vb:160
   products.GetProductDetail(String pid) in D:\DotNetSite\gmoto\products_detail.aspx.vb:24
   products.Page_Load(Object sender, EventArgs e) in D:\DotNetSite\gmoto\products_detail.aspx.vb:15
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0