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

輸入字串格式不正確。

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

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

原始程式錯誤:


行 38:         dbTrans dbtDr = new dbTrans();
行 39: 
行 40:         return (Convert.ToInt16(dbtDr.GetScalar(strSQL)) > 0);
行 41:     }
行 42: 

原始程式檔: c:\SceWeb\CLM\App_Code\clm_da.cs    行: 40

堆疊追蹤:


[FormatException: 輸入字串格式不正確。]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7685447
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) +39
   System.Convert.ToInt16(String value) +63
   clm_da.IsCommonCurs(String strYear, String strSchl, String strColl, String strCurs) in c:\SceWeb\CLM\App_Code\clm_da.cs:40
   CLM_course_detail.GetCourCapacity(String strYear, String strSchl, String strColl, String strCurs, String strDoma) in c:\SceWeb\CLM\CLM_course_detail.aspx.cs:252
   CLM_course_detail.GetCourse(String strYear, String strSchl, String strColl, String strCurs, String strDoma) in c:\SceWeb\CLM\CLM_course_detail.aspx.cs:171
   CLM_course_detail.Page_Load(Object sender, EventArgs e) in c:\SceWeb\CLM\CLM_course_detail.aspx.cs:75
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.8974; ASP.NET 版本:2.0.50727.8975