Server Error in '/' Application.

Year, Month, and Day parameters describe an un-representable DateTime.

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: Year, Month, and Day parameters describe an un-representable DateTime.

Source Error:


Line 161:
Line 162:
Line 163:        Dim dtFirst As New DateTime(y, m, 1)
Line 164:        Dim dtDays = Date.DaysInMonth(y, m)
Line 165:

Source File: C:\Inetpub\vhosts\unicoc.edu.co\httpdocs\calendario-mes.aspx.vb    Line: 163

Stack Trace:


[ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.]
   System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) +12729481
   System.DateTime..ctor(Int32 year, Int32 month, Int32 day) +21
   calendario_mes.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\unicoc.edu.co\httpdocs\calendario-mes.aspx.vb:163
   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.3429.0