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 649:    Sub IncluirNoCarrinho(ByVal acao As String)
Line 650:
Line 651:        If Double.Parse(txtcusto) = 0 Then
Line 652:            Label7.Text = "Atenção: Este produto está com valor zerado , Não pode ser comprado  ."
Line 653:            Exit Sub

Source File: E:\Vhosts\ideiaspara.com.br\httpdocs\loja\compra.aspx.vb    Line: 651

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +14619532
   System.Double.Parse(String s) +31
   shopnovo_compra.IncluirNoCarrinho(String acao) in E:\Vhosts\ideiaspara.com.br\httpdocs\loja\compra.aspx.vb:651
   shopnovo_compra.Page_Load(Object sender, EventArgs e) in E:\Vhosts\ideiaspara.com.br\httpdocs\loja\compra.aspx.vb:255
   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