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 138:            {
Line 139:                //Get id
Line 140:                contentId = gLinkHelper.GetContentIdFromLongLink(longLink_FromQueryString, longLink_FromQueryString.EndsWith("a"));
Line 141:                P.ContentId = contentId;
Line 142:                if (P.oContent.CategoryId > 0)

Source File: d:\Biz\Site\testbizcommunity\App_Control\Content\View.ascx    Line: 140

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542542
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   Biz.Common.gCommon.ConvertEncodedIdToContentId_VersionA(String sInput) in D:\Biz\Repository\Test\Site\Biz.Common\Common.cs:5769
   Biz.Web.gLinkHelper.GetContentIdFromLongLink(String longLink, Boolean isEncodedId) in D:\Biz\Repository\Test\Site\Biz.Web\Other\LinkHelper.cs:336
   ASP.app_control_content_view_ascx.On_Load() in d:\Biz\Site\testbizcommunity\App_Control\Content\View.ascx:140
   Biz.Web.cContainerBase.OnLoad(EventArgs e) in D:\Biz\Repository\Test\Site\Biz.Web\Form\ContainerBase.cs:60
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   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