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

Forums / Bugs & Issues / String was not recognized as a valid DateTime

String was not recognized as a valid DateTime

4 posts, 0 answered
  1. waqar
    waqar avatar
    76 posts
    Registered:
    28 Mar 2011
    10 May 2011
    Link to this post
    Hello Am getting an error.
    I am retrieving images using Fluent API after filtering them by category and by album.
    Server is in Germany and the language used by the website is arabic.
    Please let me know how can I fix it.

    Thanks in advance!

    here it is event log of the error .

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 07/06/32 03:21:08 ص 
    Event time (UTC): 07/06/32 07:21:08 ص 
    Event ID: b167ee6396e040d6b45a4da7640647e7 
    Event sequence: 4203 
    Event occurrence: 42 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/3/ROOT-3-129494842158536000 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: D:\HTTP\Mideast\Dodge\ 
        Machine name: P2388277 
     
    Process information: 
        Process ID: 12208 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\NETWORK SERVICE 
     
    Exception information: 
        Exception type: FormatException 
        Exception message: String was not recognized as a valid DateTime.
       at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
       at Telerik.Sitefinity.Modules.Libraries.Web.LibraryHttpHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


     
     
    Request information: 
        Request URL: http://arabic-mideast.dodge.com/images/charger/2011/04/20/entertainment.jpg 
        Request path: /images/charger/2011/04/20/entertainment.jpg 
        User host address: 94.128.26.174 
        User: Anonymous 
        Is authenticated: False 
        Authentication Type: Sitefinity 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
     
    Thread information: 
        Thread ID: 21 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
       at Telerik.Sitefinity.Modules.Libraries.Web.LibraryHttpHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
     
    Custom event details: 




  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 May 2011
    Link to this post
    Hi waqar,

    We have this issue with older versions of Sitefinity. Please make sure that you use at least Sitefinity 4.1.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. waqar
    waqar avatar
    76 posts
    Registered:
    28 Mar 2011
    10 May 2011
    Link to this post
    Hi!
    Thanks for the reply.

    Last day I reported a bug which was already logged but here i want to ask how can I use the solution given in this post ?

    They ask to write following code in the master page but in which event they did not specify it. I want to know where should I place these lines of code so that the changes in the mater page can take effect in all the inherited pages with the master page.
    var pages = Telerik.Sitefinity.App.WorkWith().Pages().LocatedIn(Telerik.Sitefinity.Fluent.Pages.PageLocation.Frontend).Get();
    Telerik.Sitefinity.Data.CacheDependency.Notify(pages.ToArray());


    But remember it should run once when not on every page load.
    Thanks in advance !


  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 May 2011
    Link to this post
    Hi waqar,

    The code should be ran only once when the change is made. The suggestion is to run this a physical .aspx page part of the solution of your webiste. Please note that the bug which relates to the issue with cache dependencies is going to be fixed in the upcoming SP (tomorrow). Also please note that we have also resolved the problem with orphaned controls in the SP.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered