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 3327:                nowPrem = mypremium
Line 3328:                showBanner = ""
Line 3329:                If ((nextPrem = 3) And (nowPrem <> 3)) Then showBanner = "1"
Line 3330:
Line 3331:

Source File: C:\inetpub\wwwroot\A2ZMS_2\SearchLS.aspx.vb    Line: 3329

Stack Trace:


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

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +256
   Microsoft.VisualBasic.CompilerServices.Operators.CompareObject2(Object Left, Object Right, Boolean TextCompare) +4049
   Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectNotEqual(Object Left, Object Right, Boolean TextCompare) +30
   SearchLS.AllVenues() in C:\inetpub\wwwroot\A2ZMS_2\SearchLS.aspx.vb:3329
   SearchLS.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\A2ZMS_2\SearchLS.aspx.vb:183
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


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