Server Error in '/' Application.

The string was not recognized as a valid DateTime. There is an unknown word starting at index 2.

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.FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 2.

Source Error:


Line 40:                 else
Line 41:                 {
Line 42:                     start = DateTime.Parse("1/" + (string)Page.RouteData.Values["month"] + "/" + (string)Page.RouteData.Values["year"]);
Line 43:                     end = start.AddMonths(1);
Line 44: 

Source File: s:\Domains\goldcrestcleaning.com\wwwroot\modules\blog\Default.aspx.cs    Line: 42

Stack Trace:


[FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 2.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +14545182
   blog_Default.BlogItemsGet() in s:\Domains\goldcrestcleaning.com\wwwroot\modules\blog\Default.aspx.cs:42
   blog_Default.Page_Load(Object sender, EventArgs e) in s:\Domains\goldcrestcleaning.com\wwwroot\modules\blog\Default.aspx.cs:19
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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