Server Error in '/' Application.

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:


Line 68:             string articleTitle = rs0["ne_titolo"].ToString(); //rs0.GetString(1);
Line 69:             string articleSynopsis = rs0["ne_descrizione"].ToString(); //.GetString(2);
Line 70:             DateTime datePublished=Convert.ToDateTime(NSComune.GestStringhe.yyyyMMddHHmmss_TO_dd_MM_yyyy_HH_mm_ss("19000101010101"));
Line 71:             try
Line 72:             {

Source File: d:\inetpub\webs\maurolandiait\nuovosito\nw100_rss.aspx    Line: 70

Stack Trace:


[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2968422
   System.Convert.ToDateTime(String value) +98
   ASP.nuovosito_nw100_rss_aspx.Page_Load(Object source, EventArgs e) in d:\inetpub\webs\maurolandiait\nuovosito\nw100_rss.aspx:70
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175