Datetime Issue while deploying 3.7 sp2 site on local system.

Posted by Community Admin on 04-Aug-2018 09:05

Datetime Issue while deploying 3.7 sp2 site on local system.

All Replies

Posted by Community Admin on 17-Nov-2012 00:00

Hi,

I am trying to deploy a website (developed in Sitefinity 3.7 sp2) to IIS7 in my local system.
But first, it takes too much time to send any response back.
And the Response returned is:


String was not recognized as a valid DateTime.
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.FormatException: String was not recognized as a valid DateTime.
 
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:
 
 
[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +4579906
   Telerik.Cms.Web.UI.DateTimeLiteral.set_Text(String value) +90
   Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService.ApplySettings(ContentView sender, BaseSettingValue settingValue, Control container) +654
   Telerik.Cms.Engine.WebControls.ContentView.ApplyModeSettings(List`1 settings, Control container) +214
   Telerik.Cms.Engine.WebControls.ContentView.repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +621
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +693
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +68
   Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls() +4520
   Telerik.News.WebControls.NewsView.CreateChildControls() +24
   System.Web.UI.Control.EnsureChildControls() +146
   System.Web.UI.Control.PreRenderRecursiveInternal() +61
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394


Following is the data in sitefinity.log (in App_data folder):


17-11-2012 14:28:54 [UNKNOWN]
************************************************************************************
ID: 615ff158-b61b-4e24-ab14-61867a66e5de; Code: 3001; Occurrence: 1; Sequence: 6
------------------------------------------------------------------------------------
 
Application information:
    Machine name: ASSET71-PC
    OS Version: Microsoft Windows NT 6.1.7600.0
    Product Version: 3.7.2057.220
    Application Path: D:\Demo\testparking\
    Debug: False
 
Process information:
    Process ID: 4852
    Process Name: w3wp
 
Request information:
    Request URL: /testPark/en/home.aspx
    Url Referrer:   Is Authenticated: False
    Authentication Type:
    User:
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
    User Address: 192.168.1.150
 
Variables:
    Sitefinity.UrlChahged: True
    Sitefinity.RewritePathAnyway: True
    CmsHttpRequest: /testPark/home.aspx
    AspSessionIDManagerInitializeRequestCalled: True
    SF_Crawler: False
    cmscurrcult: en
    cmsurlcontext: home
    cmspageid: a8dff4ba-e5ed-4459-99a9-db2cebd7c2ba
    RadControlRandomNumber: 0
 
- L0 -------------------------------------------------------------------------------
 
Exception Type: System.Web.HttpException
 
Message: Request timed out.
 
Source:
 
Stack Trace:
 
------------------------------------------------------------------------------------
 
 
 
17-11-2012 14:31:53 [UNKNOWN]
************************************************************************************
ID: 07ced6e3-97f0-4621-a462-11cbe64b7a4d; Code: 3005; Occurrence: 1; Sequence: 7
------------------------------------------------------------------------------------
 
Application information:
    Machine name: ASSET71-PC
    OS Version: Microsoft Windows NT 6.1.7600.0
    Product Version: 3.7.2057.220
    Application Path: D:\Demo\testparking\
    Debug: False
 
Process information:
    Process ID: 4852
    Process Name: w3wp
 
Request information:
    Request URL: /testPark/en/about/contact-us.aspx
    Url Referrer:   Is Authenticated: False
    Authentication Type:
    User:
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
    User Address: 192.168.1.150
 
Variables:
    Sitefinity.UrlChahged: True
    Sitefinity.RewritePathAnyway: True
    CmsHttpRequest: /testPark/about/contact-us.aspx
    AspSessionIDManagerInitializeRequestCalled: True
    SF_Crawler: False
    cmscurrcult: en
    cmsurlcontext: Contact Us
    cmspageid: ef3c452e-790b-4d74-978c-5bf574eb77df
    RadControlRandomNumber: 0
 
- L0 -------------------------------------------------------------------------------
 
Exception Type: System.FormatException
 
Message: String was not recognized as a valid DateTime.
 
Source: mscorlib
 
Stack Trace:
   at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at Telerik.Cms.Web.UI.DateTimeLiteral.set_Text(String value)
   at Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService.ApplySettings(ContentView sender, BaseSettingValue settingValue, Control container)
   at Telerik.Cms.Engine.WebControls.ContentView.ApplyModeSettings(List`1 settings, Control container)
   at Telerik.Cms.Engine.WebControls.ContentView.repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e)
   at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
   at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
   at Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls()
   at Telerik.News.WebControls.NewsView.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
------------------------------------------------------------------------------------

Posted by Community Admin on 22-Nov-2012 00:00

Hi Ashish,

Thank you for using our services.

Can you please check the following things?

1) Check web.config for the default values setting for the news date related metafields:

<add key="News.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/>
<add key="News.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max"/>
2) Do you have any globalization settings for your website to a certain culture? This will affect the formatting of DataTime.

3) Have you made changes to the following template - ~/Sitefinity/Admin/ControlTemplates/Search/ControlPanelMain.ascx and especially the line shown below:
<li><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:LastIndexingDate %>"></asp:Literal>: <strong><sfWeb:DateTimeLit

Greetings,
Jen Peleva
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

Posted by Community Admin on 22-Nov-2012 00:00

Hi Ashish,

I have already responded in your support ticket. 

Greetings,
Jen Peleva
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

Posted by Community Admin on 06-Sep-2013 00:00

Can these solutions posted 'elsewhere' be linked to these threads? Makes little sense to have multiple threads now that I've found that has my problem but solutions posted 'else where'.

I've looked at the above and I believe all that is ok. Though I can not confirm if solution idea 3 is the same dateformatstring.

My DateFormatString="dd MMM yyyy, hh:mm" ...

Posted by Community Admin on 06-Sep-2013 00:00

Server 2012, IIS 8.0.9200.16384.

[FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +14295786
   Telerik.Cms.Web.UI.DateTimeLiteral.set_Text(String value) +105
   Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService.ApplySettings(ContentView sender, BaseSettingValue settingValue, Control container) +816
   Telerik.Cms.Engine.WebControls.ContentView.ApplyModeSettings(List`1 settings, Control container) +228
   Telerik.Cms.Engine.WebControls.ContentView.repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +1054
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +199
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +659
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +164
   Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls() +4309
   System.Web.UI.Control.EnsureChildControls() +189
   System.Web.UI.Control.PreRenderRecursiveInternal() +60
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297

Posted by Community Admin on 06-Sep-2013 00:00

Hey all, I've figured this out also (atleast narrowed down the issue)...

But I'd like to suggest to all just go to /sitefinity, find your page and start removing components. Likely you will see what control is throwing this error because the exceptions are kept in the scope of the control. Time for some debugging.

This thread is closed