Server Error in '/' Application.

Index must be between 0 and 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.IndexOutOfRangeException: Index must be between 0 and 0.

Source Error:


Line 382:
Line 383:                    System.IndexOutOfRangeException("Index must be between 0 and " + _MagazineArray.Count.ToString() + ".");
Line 384:            }
Line 385:        }
Line 386:

Source File: d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\App_Code\Classe\Magazine.cs    Line: 384

Stack Trace:


[IndexOutOfRangeException: Index must be between 0 and 0.]
   cityzenslibrary.MagazineList.get_Item(Int32 indexer) in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\App_Code\Classe\Magazine.cs:384
   newsite_webcontrols_new_home_cityguide.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\webcontrols_new\home\cityguide.ascx.cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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