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 78:             ListingID = obj.Tables(0).Rows(0).Item("RentalListingId")
Line 79:         Else
Line 80:             ListingID = Request.QueryString("ListingId")
Line 81:         End If
Line 82: 

Source File: \\fs5-n02\stor6wc1dfw1\393014\503417\www.bostonhomes.net\web\content\apartmentsForRent\rentaldetails.aspx.vb    Line: 80

Stack Trace:


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

[InvalidCastException: Conversion from string "?listingID=3491968" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +246
   ApartmentsForRent_rentaldetails.Page_Load(Object sender, EventArgs e) in \\fs5-n02\stor6wc1dfw1\393014\503417\www.bostonhomes.net\web\content\apartmentsForRent\rentaldetails.aspx.vb:80
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975