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) +1674136
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +114

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +1674807
   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) +131
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +395
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +49
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   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) +131
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363


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