Issue with adding a product to basket

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello, could you please help me, when I try to add a product to basket it throws the following exception:

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Int32.Parse(String s) +23
   NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingValueInteger(String name, Int32 defaultValue) +96
   NopSolutions.NopCommerce.BusinessLogic.Orders.ShoppingCartService.AddToCart(ShoppingCartTypeEnum shoppingCartType, Int32 productVariantId, String selectedAttributes, Decimal customerEnteredPrice, Int32 quantity) +2248
   NopSolutions.NopCommerce.Web.Modules.ProductBox2Control.btnAddToCart_Click(Object sender, CommandEventArgs e) +256
   System.Web.UI.WebControls.CommandEventHandler.Invoke(Object sender, CommandEventArgs e) +0
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
12 years ago
It seems that you manually change one of the settings in your database. The setting should be integer, but it's not. Hence it can't be parsed
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.