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 1859:            Objproperty = New PropertyDLL
Line 1860:                Dim objcomm As New common
Line 1861:            Objproperty = Objproperty.GetPropertyUrlResortNameByPropertyID(HttpContext.Current.Items("propertyid"))
Line 1862:            If Objproperty.property_url <> "" Then
Line 1863:                newurl = "~/" & objcomm.replaceurlChars(Objproperty.ResortName) & "/" & objcomm.replaceurlChars(Objproperty.property_url).ToString.ToLower & "-" & HttpContext.Current.Items("propertyid")

Source File: D:\OrlandoNewDesign\PropertyDetails.aspx.vb    Line: 1861

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

[InvalidCastException: Conversion from string "details.aspx" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +284
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) +1348
   PropertyDetails.PropertyDetails_PreLoad(Object sender, EventArgs e) in D:\OrlandoNewDesign\PropertyDetails.aspx.vb:1861
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreLoad(EventArgs e) +147
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1424


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