Server Error in '/' Application.

The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset

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: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset

Source Error:


Line 107:                        item.Content = SyndicationContent.CreateXhtmlContent(property.LongDescription.Replace("\\r\\n","<br/>"));
Line 108:
Line 109:                        item.PublishDate = Convert.ToDateTime(property.DateAdded);
Line 110:
Line 111:                        items.Add(item);

Source File: c:\asp.net\UserControls\Properties\PropertySearchRss.ascx.cs    Line: 109

Stack Trace:


[ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset]
   System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset) +4603684
   System.DateTimeOffset..ctor(DateTime dateTime) +108
   System.DateTimeOffset.op_Implicit(DateTime dateTime) +30
   UserControls_Properties_PropertySearchRss.CreateRss(List`1 Params, List`1 Keywords) in c:\asp.net\UserControls\Properties\PropertySearchRss.ascx.cs:109
   UserControls_Properties_PropertySearchRss.Page_Load(Object sender, EventArgs e) in c:\asp.net\UserControls\Properties\PropertySearchRss.ascx.cs:48
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8793; ASP.NET Version:2.0.50727.8762