Server Error in '/' Application.

Value of '1/1/0001 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

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: Value of '1/1/0001 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[ArgumentOutOfRangeException: Value of '1/1/0001 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate]
   Telerik.Web.UI.RadDatePicker.set_SelectedDate(Nullable`1 value) +632
   ASP.kidcheck_checkin_controls_templateselector_ascx.__DataBinding__control24(Object sender, EventArgs e) +188
   System.Web.UI.Control.OnDataBinding(EventArgs e) +98
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +174
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +923
   Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode) +187
   Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +460
   Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +267
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +2784
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1319
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +97
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +165
   Telerik.Web.UI.GridTableView.PerformSelect() +23
   Telerik.Web.UI.GridTableView.DataBind() +360
   KCCheckin.Public.KidCheck.checkin.controls.TemplateSelector.loadSelectedTemplates() in C:\ProgramData\Jenkins\.jenkins\workspace\Pipelines\Build KidCheck.Net\webroot\KidCheck\checkin\controls\TemplateSelector.ascx.cs:179
   KCCheckin.Public.KidCheck.checkin.controls.TemplateSelector.tbStartTime_SelectedDateChanged(Object sender, SelectedDateChangedEventArgs eventArgs) in C:\ProgramData\Jenkins\.jenkins\workspace\Pipelines\Build KidCheck.Net\webroot\KidCheck\checkin\controls\TemplateSelector.ascx.cs:358
   Telerik.Web.UI.RadDatePicker.OnSelectedDateChanged(SelectedDateChangedEventArgs eventArgs) +129
   Telerik.Web.UI.RadDatePicker.DateInput_TextChanged(Object sender, EventArgs e) +149
   Telerik.Web.UI.RadInputControl.OnTextChanged(EventArgs e) +129
   System.Web.UI.Page.RaiseChangedEvents() +156
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4593