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 1319:                            Else
Line 1320:                                If InStr(rstCategory.Fields(X) & "", "$") > 0 Then
Line 1321:                                    sStandardProductDetailHMTL &= FormatCurrency(GetSubFieldValue(rstCategory.Fields(X), rstCategory.ColumnName(X), rstCategory.Fields(strItemID), MySession("CustID") & "", MySession("UserID") & ""), 2) & ""
Line 1322:                                Else
Line 1323:                                    sStandardProductDetailHMTL &= GetSubFieldValue(rstCategory.Fields(X), rstCategory.ColumnName(X), rstCategory.Fields(strItemID), MySession("CustID") & "", MySession("UserID") & "") & ""

Source File: C:\inetpub\wwwroot\GulfCoastLive\App_Code\CB_DetailProduct.aspx.vb    Line: 1321

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +213
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +81

[InvalidCastException: Conversion from string "Flat Coin Wrappers, Dollar Coin," to type 'Double' is not valid.]
   Microsoft.VisualBasic.Strings.FormatCurrency(Object Expression, Int32 NumDigitsAfterDecimal, TriState IncludeLeadingDigit, TriState UseParensForNegativeNumbers, TriState GroupDigits) +472
   Cb_detailproduct.SpecFormatDetailItem(Int32 X) in C:\inetpub\wwwroot\GulfCoastLive\App_Code\CB_DetailProduct.aspx.vb:1321
   Cb_detailproduct.DisplayDetailProduct(Object iThis) in C:\inetpub\wwwroot\GulfCoastLive\App_Code\CB_DetailProduct.aspx.vb:1568
   Advancedwebpagefunctions.ShowCategory(Boolean bDisplayWebCategory) in C:\inetpub\wwwroot\GulfCoastLive\App_Code\AdvancedWebPageFunctions.aspx.vb:1264
   Advancedwebpagefunctions.Main() in C:\inetpub\wwwroot\GulfCoastLive\App_Code\AdvancedWebPageFunctions.aspx.vb:2911
   ASP.advancedwebpage_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\GulfCoastLive\AdvancedWebPage.aspx:15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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