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 660: id="<%#pcr.GetPriceId(((DataRowView)Container.DataItem).Row.GetChildRows("myrelation3"),Container)%>" Line 661: data-isu2='<%#pcr.IsU2%>' Line 662: data-coupon='<%#Formatting.formatCurrencywithoutunit(pcr.CouponUnit(Convert.ToDecimal(pcr.GetPID(((DataRowView)Container.DataItem).Row.GetChildRows("myrelation3")))))%>' Line 663: qnt="<%#pcr.GetQnt(((DataRowView)Container.DataItem).Row.GetChildRows("myrelation3"))%>" Line 664: maxq="<%#pcr.GetMaxQ(((DataRowView)Container.DataItem).Row.GetChildRows("myrelation3"))%>" ><%#pcr.GetDescriptionPrice(((DataRowView)Container.DataItem),Container)%></i>

Source File: c:\HostingSpaces\vespida\vespida.com\wwwroot\Products\ProductControl.ascx    Line: 662

Stack Trace:


[FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10187475 System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +238 System.Convert.ToDecimal(String value) +100 ASP.products_productcontrol_ascx.__DataBind__control155(Object sender, EventArgs e) in c:\HostingSpaces\vespida\vespida.com\wwwroot\Products\ProductControl.ascx:662 System.Web.UI.Control.OnDataBinding(EventArgs e) +132 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +170 System.Web.UI.Control.DataBindChildren() +11160559 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182 System.Web.UI.Control.DataBindChildren() +11160559 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +674 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +68 ProductCore.Init() +1507 Products_ProductControl.Page_Load(Object sender, EventArgs e) +121 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 System.Web.UI.Control.OnLoad(EventArgs e) +132 System.Web.UI.Control.LoadRecursive() +66 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9044; ASP.NET Version:2.0.50727.9047