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

輸入字串格式不正確。

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

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

原始程式錯誤:


行 120:        litCurrency4.Text = PayCurrency
行 121:
行 122:        litSCPayTW.Text = (CInt(litSCPay.Text) * PayRate).ToString("#,0")
行 123:
行 124:        litCPay1TW.Text = (CInt(litCPay1.Text) * PayRate).ToString("#,0")

原始程式檔: D:\WWWroot\realmedia\01_52 www.studynews.com.tw\CoursesComputer.aspx.vb    行: 122

堆疊追蹤:


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

[InvalidCastException: 從字串 "" 至型別 'Integer' 的轉換是無效的。]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +717079
   CoursesComputer.LoadData(Int32 cid) in D:\WWWroot\realmedia\01_52 www.studynews.com.tw\CoursesComputer.aspx.vb:122
   CoursesComputer.Page_Load(Object sender, EventArgs e) in D:\WWWroot\realmedia\01_52 www.studynews.com.tw\CoursesComputer.aspx.vb:23
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本資訊: Microsoft .NET Framework 版本:2.0.50727.9061; ASP.NET 版本:2.0.50727.9062