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

輸入字串格式不正確。

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

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

原始程式錯誤:


行 74:         Dim id, name, onsale, strDos As String
行 75:         Dim dateupdate, datebegin As Date
行 76:         Dim yearsnews As Integer = CInt(us.getConfigValue("webyearsnews"))
行 77:         datebegin = Date.Today.AddYears(-yearsnews)
行 78: 

原始程式檔: D:\UserData\vhosts\its-taiwan.org.tw\httpdocs\c\Award.aspx.vb    行: 76

堆疊追蹤:


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

[InvalidCastException: 從字串 "<div style="position:absolute;to" 至類型 'Integer' 的轉換是無效的。]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +248
   C_Award.makeDataTable() in D:\UserData\vhosts\its-taiwan.org.tw\httpdocs\c\Award.aspx.vb:76
   C_Award.populateGV1() in D:\UserData\vhosts\its-taiwan.org.tw\httpdocs\c\Award.aspx.vb:173
   C_Award.getElement() in D:\UserData\vhosts\its-taiwan.org.tw\httpdocs\c\Award.aspx.vb:43
   C_Award.Page_Load(Object sender, EventArgs e) in D:\UserData\vhosts\its-taiwan.org.tw\httpdocs\c\Award.aspx.vb:20
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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