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 121:        lblTopNavHtml.Text = cProfHome.getTopNavigation(bProfile)
Line 122:        lblSideNavHtml.Text = cProfHome.getSideNavigation(bProfile)
Line 123:        lblRelatedLinksHtml.Text = cProfHome.getRelatedLinks(bProfile)
Line 124:        lblDidYouKnowHtml.Text = cProfHome.getDidYouKnow(bProfile)
Line 125:

Source File: C:\inetpub\wwwroot\mobility\default.aspx    Line: 123

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 "2018∨gtypecode=5" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +284
   system.doe.profiles.classes.profileshome.RelatedLinksClass.getRelatedLinks(ProfilesNavBean bProfiles) +1244
   system.doe.profiles.classes.profileshome.ProfilesHomeClass.getRelatedLinks(ProfilesNavBean bProfiles) +99
   ASP.mobility_default_aspx.Page_Load(Object Sender, EventArgs E) in C:\inetpub\wwwroot\mobility\default.aspx:123
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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