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

Year、Month 和 Day 參數描述無法表示的 DateTime。

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

例外詳細資訊: System.ArgumentOutOfRangeException: Year、Month 和 Day 參數描述無法表示的 DateTime。

原始程式錯誤:


行 808:            returnValue.Append("</ul>");
行 809:        }
行 810:        returnValue.Append("<div class='todaydate'>" + tempY.ToString() + "年" + tempM.ToString() + "月" + tempD.ToString() + "日 " + arrM3[Convert.ToInt32(new DateTime(tempY, tempM, tempD).DayOfWeek)] + "</div>");
行 811:
行 812:        L1.Text = returnValue.ToString();

原始程式檔: \\10.65.1.228\www.cnyes.com\economy\indicator\app_code\economicnormsclass_san\businessclass\scheduleClass.cs    行: 810

堆疊追蹤:


[ArgumentOutOfRangeException: Year、Month 和 Day 參數描述無法表示的 DateTime。]
   System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) +10744128
   System.DateTime..ctor(Int32 year, Int32 month, Int32 day) +27
   scheduleClass.calendar1(Literal L1, String Date1) in \\10.65.1.228\www.cnyes.com\economy\indicator\app_code\economicnormsclass_san\businessclass\scheduleClass.cs:810
   uc_CalendarTwo.bind() in \\10.65.1.228\www.cnyes.com\economy\indicator\uc\CalendarTwo.ascx.cs:26
   uc_CalendarTwo.Page_Load(Object sender, EventArgs e) in \\10.65.1.228\www.cnyes.com\economy\indicator\uc\CalendarTwo.ascx.cs:18
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


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