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 134:
Line 135:
Line 136:        Dim dtFirst As New DateTime(y, m, 1)
Line 137:        Dim dtDays = Date.DaysInMonth(y, m)
Line 138:

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

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\Bogota\calendario-mes.aspx.vb:136
   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