This project is read-only.

System.ArgumentOutOfRangeException BlogRoll.cs

Topics: Controls
Sep 4, 2008 at 5:13 AM
In BlogRoll.cs my blog is throwing an error at Line 70:
70    ===>  if (DateTime.Now > _LastUpdated.AddMinutes(BlogSettings.Instance.BlogrollUpdateMinutes) && BlogSettings.Instance.BlogrollVisiblePosts > 0)
        _Items = null;
        _LastUpdated = DateTime.Now;

Exception Details: System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value

What is this?
Sep 4, 2008 at 3:50 PM
Nevermind, some of data in VistaDB got corrupted somehow and in BlogRoll Settings for Update frequency (minutes) there was a negative number. So I commented out the lines on Blogroll.cs and updated the database and then uncommented the line and the error went away.