Server Error in '/courier' 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 472:                    countGroup++;
Line 473:
Line 474:                    PageDisplayitemCollection items = PageDisplayitemFactory.GetPageDisplayItemByGroupid(group.PageDisplayGroupId, "A");
Line 475:                    if (items != null)
Line 476:                        if (items.Count > 0)

Source File: e:\inetpub\wwwroot\CommonTemplatePublishers2\RealView\RealView - AU - Mount Barker Courier - ID 26\index.aspx.cs    Line: 474

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14286718
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +192
   CRM.Base.PageDisplayitemFactory.GetPageDisplayItemByGroupid(Int32 pageDisplayGroupId, String status, String connectionString) +2427

[Exception: An error occured retrieving the Page diplay items]
   CRM.Base.PageDisplayitemFactory.GetPageDisplayItemByGroupid(Int32 pageDisplayGroupId, String status, String connectionString) +4757
   CRM.Base.PageDisplayitemFactory.GetPageDisplayItemByGroupid(Int32 pageDisplayGroupId, String status) +67
   Index_New.GetProductDisplayList() in e:\inetpub\wwwroot\CommonTemplatePublishers2\RealView\RealView - AU - Mount Barker Courier - ID 26\index.aspx.cs:474
   Index_New.LoadListProducts() in e:\inetpub\wwwroot\CommonTemplatePublishers2\RealView\RealView - AU - Mount Barker Courier - ID 26\index.aspx.cs:509
   Index_New.OnInit(EventArgs e) in e:\inetpub\wwwroot\CommonTemplatePublishers2\RealView\RealView - AU - Mount Barker Courier - ID 26\index.aspx.cs:18
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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