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 53:             If LIAMListing.Rows.Count > 0 Then
Line 54:                 Dim CurrentPage As String = Request.QueryString("p")
Line 55:                 If CurrentPage = 0 Then CurrentPage = 1
Line 56:                 Dim FirstItem As Integer
Line 57:                 Dim LastItem As Integer

Source File: C:\Domains\liamorgm\liam.org.my\wwwroot\customer_zone\consumer_series.aspx.vb    Line: 55

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.ToDouble(String Value, NumberFormatInfo NumberFormat) +81

[InvalidCastException: Conversion from string "-1,-1" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +211
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value) +7
   _ConsumerSeries.Page_Load(Object sender, EventArgs e) in C:\Domains\liamorgm\liam.org.my\wwwroot\customer_zone\consumer_series.aspx.vb:55
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2851


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