Intento de dividir por cero.

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

Intento de dividir por cero.

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.DivideByZeroException: Intento de dividir por cero.

Error de código fuente:

Línea 57:             try { variacion = Convert.ToDecimal(dato); } catch (Exception E) { variacion = Decimal.Zero; }; Línea 58:             index++; Línea 59:             rango = Math.Round(variacion * 100 / maxVariacion,2 ); Línea 60:             strRango = strRango + Math.Abs(rango).ToString() + "#"; Línea 61:             css = (rango > 0) ? "ifb-top" : (rango < 0) ? "ifb-flop" : "ifb-equal";

Archivo de origen: c:\Datapump\Cotizalia2017\UserControls\FichaValor\15Sesiones.ascx    Línea: 59

Seguimiento de la pila:

[DivideByZeroException: Intento de dividir por cero.]   System.Decimal.FCallDivide(Decimal& result, Decimal d1, Decimal d2) +0   System.Decimal.op_Division(Decimal d1, Decimal d2) +125   ASP.usercontrols_fichavalor_15sesiones_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Datapump\Cotizalia2017\UserControls\FichaValor\15Sesiones.ascx:59   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Control.Render(HtmlTextWriter writer) +10   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Control.Render(HtmlTextWriter writer) +10   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   ASP.fichavalor_master.__RendercphContent(HtmlTextWriter __w, Control parameterContainer) in c:\Datapump\Cotizalia2017\FichaValor.Master:7   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Control.Render(HtmlTextWriter writer) +10   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   ASP.maincanvas_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Datapump\Cotizalia2017\MainCanvas.Master:20   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Control.Render(HtmlTextWriter writer) +10   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Control.Render(HtmlTextWriter writer) +10   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19   System.Web.UI.Page.Render(HtmlTextWriter writer) +29   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Información de versión: Versión de Microsoft .NET Framework:2.0.50727.3662; Versión ASP.NET:2.0.50727.3668