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 11:             <div class="news-v3-in">
Line 12:                 <ul class="list-inline posted-info">
Line 13:                     <li><%=englishDateToPersianDate(_posts.modifiedDate.ToString()) %></li>
Line 14:                 </ul>
Line 15:                 <h2><a ><%=_posts.postName %></a></h2>

Source File: c:\inetpub\vhosts\music-academy.ir\httpdocs\uc_postsDetail.ascx    Line: 13

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) +5185402
   System.Globalization.PersianCalendar.GetDatePart(Int64 ticks, Int32 part) +32
   System.Globalization.PersianCalendar.GetYear(DateTime time) +26
   musicacademy.uc_master.englishDateToPersianDate(String _strdateTime) in d:\My Projects\Website\music-academy.ir\site\svn\musicacademy\uc_master.cs:388
   ASP.uc_postsdetail_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\music-academy.ir\httpdocs\uc_postsDetail.ascx:13
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.BasePartialCachingControl.Render(HtmlTextWriter output) +391
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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