Server Error in '/' Application.

The added or subtracted value results in an un-representable DateTime.
Parameter name: value

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: The added or subtracted value results in an un-representable DateTime.
Parameter name: value

Source Error:


Line 203:            session.Get();
Line 204:
Line 205:            if ((session.EndDate < DateTime.UtcNow) && (!session.LiveAuctionDate.Equals(DBNull.Value)) && !session.LiveReconciled && (session.LiveAuctionDate.AddMinutes(-30) < DateTime.UtcNow))
Line 206:            {
Line 207:                return "<div id='HeaderLiveAuctionBanner'><a id='HeaderLiveAuctionBannerLink' href='" + Param.LiveAuctionPage + ".aspx?sessionid=" + session.Id.ToString() + "'></a></div>";

Source File: \\fs01\webcontent03\wwwroot\goldinauctions.com\wwwroot\AuctionLanding.aspx.cs    Line: 205

Stack Trace:


[ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value]
   System.DateTime.AddTicks(Int64 value) +12746329
   System.DateTime.Add(Double value, Int32 scale) +126
   System.DateTime.AddMinutes(Double value) +24
   AuctionLanding.GetLiveAuctionButton(Int32 auctionId) in \\fs01\webcontent03\wwwroot\goldinauctions.com\wwwroot\AuctionLanding.aspx.cs:205
   ASP.auctionlanding_aspx.__DataBind__control12(Object sender, EventArgs e) in \\fs01\webcontent03\wwwroot\goldinauctions.com\wwwroot\auctionlanding.aspx:46
   System.Web.UI.Control.OnDataBinding(EventArgs e) +84
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +126
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +217
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +71
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +62
   System.Web.UI.WebControls.Repeater.DataBind() +77
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   AuctionLanding.BindData() in \\fs01\webcontent03\wwwroot\goldinauctions.com\wwwroot\AuctionLanding.aspx.cs:119
   AuctionLanding.Page_Load(Object sender, EventArgs e) in \\fs01\webcontent03\wwwroot\goldinauctions.com\wwwroot\AuctionLanding.aspx.cs:59
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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