由于某种原因,页面加载会在同一会话期间间歇性地引发异常。登录后,会通过javascript为用户的时区偏移设置会话变量。如果我单击指向该页面的链接,它将连续多次运行,然后使用下面的堆栈跟踪失败。怎么可能这样呢? Windows Server 2003 SP2为网站提供服务。
Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks
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.ArgumentOutOfRangeException: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks]
System.DateTime..ctor(Int64 ticks) +101
System.CurrentSystemTimeZone.ToLocalTime(DateTime time) +49
System.DateTime.ToLocalTime() +25
HTP.RHIO.WebPortal.pollingHistoryDetail.Page_Load(Object sender, EventArgs e) +481
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2494; ASP.NET Version:1.1.4322.2494