Server Error in '/' Application.

Specified time is not supported in this calendar. It should be between 03/22/0622 00:00:00 (Gregorian date) and 12/31/9999 23:59:59 (Gregorian date), inclusive.
Parameter name: time

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: Specified time is not supported in this calendar. It should be between 03/22/0622 00:00:00 (Gregorian date) and 12/31/9999 23:59:59 (Gregorian date), inclusive.
Parameter name: time

Source Error:


Line 789:    public static string GetPersianNameDate(DateTime YorTime, bool NameWeek)
Line 790:    {
Line 791:        return string.Format("{3} {0} {1} {2}", ObjPersianCalendar.GetDayOfMonth(YorTime), FarsiNameMonth(ObjPersianCalendar.GetMonth(YorTime)), ObjPersianCalendar.GetYear(YorTime), NameWeek ? FarsiNameWeek(YorTime) : "");
Line 792:    }
Line 793:    /// <summary>

Source File: c:\inetpub\wwwroot\TglSites\varzeshbu\App_Code\DateTimeUtils.cs    Line: 791

Stack Trace:


[ArgumentOutOfRangeException: Specified time is not supported in this calendar. It should be between 03/22/0622 00:00:00 (Gregorian date) and 12/31/9999 23:59:59 (Gregorian date), inclusive.
Parameter name: time]
   System.Globalization.PersianCalendar.CheckTicksRange(Int64 ticks) +4929413
   System.Globalization.PersianCalendar.GetDatePart(Int64 ticks, Int32 part) +33
   System.Globalization.PersianCalendar.GetDayOfMonth(DateTime time) +30
   DateTimeUtils.GetPersianNameDate(DateTime YorTime, Boolean NameWeek) in c:\inetpub\wwwroot\TglSites\varzeshbu\App_Code\DateTimeUtils.cs:791
   ASP.shownews_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\TglSites\varzeshbu\shownews.aspx:59
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11661639
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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