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 315:
Line 316:            KargoFiyati hesapla = new KargoFiyati();
Line 317:            KargoFiyati = hesapla.kargoFiyati(dropDownUlkeler.SelectedValue, Convert.ToInt32(ViewState["toplamUrun"]), dtrData["ID"].ToString(), Convert.ToDouble(lblSepetToplam.Text));
Line 318:
Line 319:            ListItem list = new ListItem();

Source File: c:\inetpub\vhosts\ipeksalevi.com\httpdocs\sepet.aspx.cs    Line: 317

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +13043247
   System.Convert.ToDouble(String value) +53
   sepet.kargoFirmalariGetir() in c:\inetpub\vhosts\ipeksalevi.com\httpdocs\sepet.aspx.cs:317
   sepet.dropDownUlkeler_SelectedIndexChanged(Object sender, EventArgs e) in c:\inetpub\vhosts\ipeksalevi.com\httpdocs\sepet.aspx.cs:1408
   sepet.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\ipeksalevi.com\httpdocs\sepet.aspx.cs:104
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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