Server Error in '/' Application.

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

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 4.

Source Error:


Line 48:             else
Line 49:             {
Line 50:                 start = DateTime.Parse("1/" + "1/" + (string)Page.RouteData.Values["year"]);
Line 51:                 end = start.AddYears(1);
Line 52: 

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

Stack Trace:


[FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 4.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +14545182
   blog_Default.BlogItemsGet() in s:\Domains\goldcrestcleaning.com\wwwroot\modules\blog\Default.aspx.cs:50
   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