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 9:  
Line 10:         If Request.QueryString("carID") IsNot Nothing Then
Line 11:             tmpCar = Car.GetCar(Request.QueryString("carID"))
Line 12:         End If
Line 13: 

Source File: \\hp3-winc1-smb1.hostingp3.local\domainsx\857\3930857\user\htdocs\cardetails.aspx.vb    Line: 11

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.ToInteger(String Value) +92

[InvalidCastException: Conversion from string "1071?carID=1071" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +248
   _cardetails.Page_Init(Object sender, EventArgs e) in \\hp3-winc1-smb1.hostingp3.local\domainsx\857\3930857\user\htdocs\cardetails.aspx.vb:11
   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.4700.0