Error de servidor en la aplicación '/'.

La cadena de entrada no tiene el formato correcto.

Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: System.FormatException: La cadena de entrada no tiene el formato correcto.

Error de código fuente:


Línea 14: 
Línea 15:         NoticiasDALTableAdapters.VWNoticiasTableAdapter noticias = new NoticiasDALTableAdapters.VWNoticiasTableAdapter();
Línea 16:         NoticiasDAL.VWNoticiasDataTable DT = noticias.GetNoticiasByNoticiaId(Convert.ToInt32(s));
Línea 17: 
Línea 18:         if(DT.Count==1)

Archivo de origen: c:\inetpub\Servicios\Content\Consulta\NoticiasUTEQ.aspx.cs    Línea: 16

Seguimiento de la pila:


[FormatException: La cadena de entrada no tiene el formato correcto.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14784004
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   System.Convert.ToInt32(String value) +60
   Content_Consulta_NoticiasUTEQ.Page_Load(Object sender, EventArgs e) in c:\inetpub\Servicios\Content\Consulta\NoticiasUTEQ.aspx.cs:16
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Información de versión: Versión de Microsoft .NET Framework:4.0.30319; Versión ASP.NET:4.7.4076.0