Error in RSS/Atom link

Topics: Business Logic Layer, Controls
Nov 14, 2008 at 9:09 AM
The RSS/ATOM link and the page syndication.axd is not working fine at my end. What might be the issue?

Here is the details of the error:

Server Error in '/' Application.

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

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 added or subtracted value results in an un-representable DateTime.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value]
   System.DateTime.AddTicks(Int64 value) +2838405
   System.DateTime.Add(Double value, Int32 scale) +143
   System.DateTime.AddHours(Double value) +19
   BlogEngine.Core.BusinessBase`2.get_DateModified() in D:\BlogEngine releases\BlogEngine.NET 1.4.5\BlogEngine.Core\BusinessBase.cs:67
   BlogEngine.Core.Web.HttpHandlers.SyndicationHandler.SetHeaderInformation(HttpContext context, List`1 items, SyndicationFormat format) in D:\BlogEngine releases\BlogEngine.NET 1.4.5\BlogEngine.Core\Web\HttpHandlers\SyndicationHandler.cs:276
   BlogEngine.Core.Web.HttpHandlers.SyndicationHandler.ProcessRequest(HttpContext context) in D:\BlogEngine releases\BlogEngine.NET 1.4.5\BlogEngine.Core\Web\HttpHandlers\SyndicationHandler.cs:65
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Nov 14, 2008 at 12:49 PM
What is your URL?
Nov 14, 2008 at 12:53 PM
Found it from another page, can you turn your web.config CustomErrors to "Off"
Nov 14, 2008 at 3:39 PM
Its already off.

    <customErrors mode="Off">
        <error statusCode="404" redirect="~/error404.aspx"/>
    </customErrors>


Kangkan
http://www.geekays.net/


Nov 14, 2008 at 4:36 PM
Oh! I could locate the problem. The server offset I put was -10.5 and it caused the problem. I am not sure why it caused the problem, or how the code handles it. I am yet to see the code
Nov 17, 2008 at 2:04 PM
Edited Nov 17, 2008 at 2:07 PM
http://www.codeplex.com/blogengine/Thread/View.aspx?ThreadId=32329

First reported above ^^^

The Fix has been posted here:

http://www.codeplex.com/blogengine/Thread/View.aspx?ThreadId=32329

You need to download the source, insert the above fix, and recompile, OR

You can download a compiled BIN folder binaries from a customer site which had the same issue: http://www.mostlysafeforwork.com/bin.zip

This is for version 1.45.0 only. No express or implied warranty is offered by the provision of the above code. Item provided "as is", etc. etc.

Hope that helps someone.
Nick