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 713:        LogDebugMessage("CalcLevel done: ")
Line 714:        If Not IsNothing(Current.Request("SKU")) Then
Line 715:            SKUID = Current.Request("SKU") & ""
Line 716:        End If
Line 717:        If Not IsNothing(Current.Request("SKUFLD")) Then

Source File: C:\Websites\Live\App_Code\AdvancedWebPageFunctions.aspx.vb    Line: 715

Stack Trace:


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

[InvalidCastException: Conversion from string "bkbs-s" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +250
   Advancedwebpagefunctions.ShowCategory(Boolean bDisplayWebCategory) in C:\Websites\Live\App_Code\AdvancedWebPageFunctions.aspx.vb:715
   Advancedwebpagefunctions.Main() in C:\Websites\Live\App_Code\AdvancedWebPageFunctions.aspx.vb:2296
   ASP.advancedwebpage_aspx.Page_Load(Object sender, EventArgs e) in C:\Websites\Live\advancedwebpage.aspx:15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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