Input string was not in a correct format.

Server Error in '/' Application.

Input string was not in a correct format.

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: Input string was not in a correct format.

Source Error:


Line 293:                            </div>
Line 294:                            <div class="contBranco">
Line 295:                                <div class="posicaoSeta" style="margin-left: -42px; margin-top: <%=(tipo-1)*70%>px;">
Line 296:                                    <img src="images/setaMarca.png" width="13" height="19" />
Line 297:                                </div>

Source File: D:\Projetos\FMC_Agricola\produtosdetalhes.aspx    Line: 295

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +304
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +88

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +253
   ASP.produtosdetalhes_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in D:\Projetos\FMC_Agricola\produtosdetalhes.aspx:295
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +260
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11828233
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +50
   ASP.produtosdetalhes_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\Projetos\FMC_Agricola\produtosdetalhes.aspx:280
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +260
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4104


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