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 486:        public static int GetPersianDay(DateTime date)
Line 487:        {
Line 488:            return new PersianCalendar().GetDayOfMonth(date);
Line 489:        }
Line 490:

Source File: c:\inetpub\vhosts\tabrizmft.ir\httpdocs\App_Code\Common\Helper.cs    Line: 488

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) +5010773
   System.Globalization.PersianCalendar.GetDatePart(Int64 ticks, Int32 part) +33
   System.Globalization.PersianCalendar.GetDayOfMonth(DateTime time) +30
   BASA.Helper.GetPersianDay(DateTime date) in c:\inetpub\vhosts\tabrizmft.ir\httpdocs\App_Code\Common\Helper.cs:488
   BASA.Helper.GetPersainDateBlogFormat(DateTime date) in c:\inetpub\vhosts\tabrizmft.ir\httpdocs\App_Code\Common\Helper.cs:609
   BlogView.Render(Int32 id) in c:\inetpub\vhosts\tabrizmft.ir\httpdocs\BlogView.aspx.cs:52
   BlogView.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\tabrizmft.ir\httpdocs\BlogView.aspx.cs:33
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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