Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

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:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Biz.Common.gCommon.UnjumbleDigits(Char[] arrInput) in D:\Biz\Repository\Test\Site\Biz.Common\Common.cs:5578
   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