+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / SFLB rendering problem

SFLB rendering problem

2 posts, 0 answered
  1. Netfinity
    Netfinity avatar
    11 posts
    Registered:
    15 Nov 2006
    26 May 2008
    Link to this post
    Hi everyone,
    We have a live implementation of SF3.2 that is now live.

    We also use a 3rd party email component, AspNetEmail, that automatically generates a diagnostic email whenever the site errors. This is triggered in the Application_Error method of the global.asax. It fires the error event even when a broken image is rendered.

    We implement this in all of our projects and it works very well. We are getting some very strange errors coming through now though. One in particular is being triggered by the .sflb extension.

    Exception details are as follows:
    Message  System.FormatException: String was not recognized as a valid DateTime.
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.DateTime.Parse(String s)
    at Telerik.Cms.Engine.ContentHttpHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
    Target Site  System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles) 
    StackTrace  at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.DateTime.Parse(String s)
    at Telerik.Cms.Engine.ContentHttpHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
    Method  Parse,Parse,ProcessRequest,System.Web.HttpApplication.IExecutionStep.Execute,ExecuteStep 

    When our client browses the site they sometimes, and only sometimes, see a lot of broken images on the page. They are all sflb images. I then get a flood of error emails, one email for each broken image on the page.

    We are confused as to why the images are appearing broken only sometimes. Most of the time they are fine. 

    The exception contains the "String was not recognized as a valid DateTime" message. We think it might be to do with the image library caching so we have set caching to Off but this did not work. We use UK/NZ/AU datetime format in the app.

    If anyone has any ideas it would be greatly appreciated.

    PS. We have correctly mapped all extensions as per the instructions provided.

    regards
    Mark
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 May 2008
    Link to this post
    Hi Netfinity,

    As we mentioned in the support ticket, this exception is raised when trying to parse the date, send in the browser request If-Modified-Since. We are not really sure how this header could be crafted by the browsers.

    A resolution to this issue could be to turn off the library caching. It will take effect for all newly uploaded images, or at least until the browser cache is cleared. This way, no matter what date is sent by the browser, we will not check it and will proceed with serving the content. You could turn off the caching by browsing to the desired librabry -> Set Details -> More options and clear the checkbox "".

    We have fixed it for SP2, which is coming out by the end of this week.

    We have updated your Telerik account for drawing our attention to this.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered