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 21:                 </div>
Line 22:                 <div class="msrp" style='<%# FormatPriceDivStyleMsrp(Container.DataItem)%>'>
Line 23:                     <span class="priceLabel">MSRP: </span><span class="priceValue"><%# FormatPriceMsrp(Container.DataItem)%></span>
Line 24:                 </div> 
Line 25:                 <div class="price" style='<%# FormatPriceDivStyle(Container.DataItem)%>'>

Source File: d:\Webhosting\MEDCOdistributor\Content\ClientControls\ProductsListGrid.ascx    Line: 23

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14784004
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +191
   Medco.Business.ClientViewMedcoProduct.get_Msrp() in c:\Builds\3\MEDCO-Distributor\MEDCO-Distributor_Main_Testing\Sources\Main\Medco\Business\ClientViewMedcoProduct.cs:597
   Medco.ClientControls.ProductsListGrid.FormatPriceMsrp(Object prod) in c:\Builds\3\MEDCO-Distributor\MEDCO-Distributor_Main_Testing\Sources\Main\Medco\Medco\ClientControls\ProductsListGrid.ascx.cs:99
   ASP.clientcontrols_productslistgrid_ascx.__DataBind__control3(Object sender, EventArgs e) in d:\Webhosting\MEDCOdistributor\Content\ClientControls\ProductsListGrid.ascx:23
   System.Web.UI.Control.OnDataBinding(EventArgs e) +98
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +174
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +172
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +104
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   ViewCategory.BindControls() in c:\Builds\3\MEDCO-Distributor\MEDCO-Distributor_Main_Testing\Sources\Main\Medco\Medco\ViewCategory.aspx.cs:109
   ViewCategory.Page_Load(Object sender, EventArgs e) in c:\Builds\3\MEDCO-Distributor\MEDCO-Distributor_Main_Testing\Sources\Main\Medco\Medco\ViewCategory.aspx.cs:37
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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