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 103:    {
Line 104:
Line 105:        DateTime fi = DateTime.Parse(datosNoticia.Fecha_creacion);
Line 106:        string dir = "admin/Img_Noticia/";
Line 107:        string dirP = "admin/Img_Noticia_portada/";

Source File: c:\inetpub\wwwroot\mmi.carac.es\datos_entrevista.aspx.cs    Line: 105

Stack Trace:


[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +14276559
   datos_entrevista.cargarNoticias() in c:\inetpub\wwwroot\mmi.carac.es\datos_entrevista.aspx.cs:105
   datos_entrevista.cargarPagina() in c:\inetpub\wwwroot\mmi.carac.es\datos_entrevista.aspx.cs:98
   datos_entrevista.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\mmi.carac.es\datos_entrevista.aspx.cs:29
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0