Server Error in '/' Application.

Параметр ItemCount не может быть меньше 1.
Parameter name: ItemCount
Actual value was 0.

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.ArgumentOutOfRangeException: Параметр ItemCount не может быть меньше 1.
Parameter name: ItemCount
Actual value was 0.

Source Error:


Line 472:
Line 473:                #region Пейджер
Line 474:                Pager _p =
Line 475:                    new Pager("../",
Line 476:                    IDSList.B3.B3ItemCount, 10, IDSList.B3.B3Page, String.Empty,

Source File: f:\WWW\CAP.RU\enc_new\App_Code\ContentPerson.ascx.cs    Line: 474

Stack Trace:


[ArgumentOutOfRangeException: Параметр ItemCount не может быть меньше 1.
Parameter name: ItemCount
Actual value was 0.]
   IServ.v2.Pager.set_ItemCount(Int32 value) +208
   IServ.v2.Pager..ctor(String BaseUrl, Int32 ItemCount, Int32 PagerCount, Int32 Page, String Sort, String ParamPage, String ParamSort) +100
   ContentPerson.Page_Load(Object sender, EventArgs e) in f:\WWW\CAP.RU\enc_new\App_Code\ContentPerson.ascx.cs:474
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.BasePartialCachingControl.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762