Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

Line 102:		int currentCount = 0;
Line 103:
Line 104:		while (events[eventIndex].DateTime < dateIterator && eventIndex < events.Count)
Line 105:		{
Line 106:			if (events[eventIndex].OrganizationId == 1)

Source File: c:\Internet Publishing\Webs\PirateWeb\Pages\Public\Charts\MemberCount-Closeup.aspx.cs    Line: 104

Stack Trace:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +62
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +12
   System.Collections.Generic.List`1.get_Item(Int32 index) +2650868
   Pages_Public_Charts_MemberCount_Closeup.GetGrowthData() in c:\Internet Publishing\Webs\PirateWeb\Pages\Public\Charts\MemberCount-Closeup.aspx.cs:104
   Pages_Public_Charts_MemberCount_Closeup.Page_Load(Object sender, EventArgs e) in c:\Internet Publishing\Webs\PirateWeb\Pages\Public\Charts\MemberCount-Closeup.aspx.cs:50
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433