Server Error in '/' Application.

Arithmetic operation resulted in an overflow.

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.OverflowException: Arithmetic operation resulted in an overflow.

Source Error:


Line 285:
Line 286:        'Generate a reasonably random number based on the time
Line 287:        strEncodedTime = (Second(Now()) + 1) * (Minute(Now()) + 1) * (Hour(Now()) + 1) * (Day(Now()) + 1) * (Year(Now()) + 1)
Line 288:
Line 289:        'Encrypt 5 characters, then the survey ID, and the 5 more characters

Source File: C:\htdocs\CaliforniaTripleCrown.org\A_Get_CTC_Club_Stats.vb    Line: 287

Stack Trace:


[OverflowException: Arithmetic operation resulted in an overflow.]
   Get_CTC_Club_Stats.EncryptSurveyID(Object lngSurveyID) in C:\htdocs\CaliforniaTripleCrown.org\A_Get_CTC_Club_Stats.vb:287
   Get_CTC_Club_Stats.Get_Club_History_Stats(Int32 Stats_Year, Int32 Sort_Order, Int32 Club_ID) in C:\htdocs\CaliforniaTripleCrown.org\A_Get_CTC_Club_Stats.vb:164
   ASP.club_stats_club_history_aspx.Page_Load(Object sender, EventArgs e) in C:\htdocs\CaliforniaTripleCrown.org\Club_Stats\Club_History.aspx:14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0