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 19:         Dim ArticleID As Integer = hdHomePageID.Value
Line 20:         If Request.Url.ToString.Contains("ArticleID=") = True Then
Line 21:             If Request.QueryString("ArticleID") = 0 Then
Line 22:                 ArticleID = hdHomePageID.Value
Line 23:             Else

Source File: C:\home\site\wwwroot\ACEWebsite.aspx.vb    Line: 21

Stack Trace:


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

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +207
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value) +12
   ACEWebsite.Page_Init(Object sender, EventArgs e) in C:\home\site\wwwroot\ACEWebsite.aspx.vb:21
   System.Web.UI.Control.OnInit(EventArgs e) +97
   System.Web.UI.Page.OnInit(EventArgs e) +14
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +416


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