Server Error in '/' Application.

Enumeration has either not started or has already finished.

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.InvalidOperationException: Enumeration has either not started or has already finished.

Source Error:


Line 18:         List<SentAlertData> alerts = new List<SentAlertData>(AlertsFactory.GetActiveAlertBanners());
Line 19:         rtrAlertBanners.DataSource = alerts;
Line 20:         rtrAlertBanners.DataBind();
Line 21:     }
Line 22: }

Source File: c:\webclients\Teaneck\www\Controls\AlertBannerl.ascx.cs    Line: 20

Stack Trace:


[InvalidOperationException: Enumeration has either not started or has already finished.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +48
   System.Collections.Generic.Enumerator.System.Collections.IEnumerator.get_Current() +2651945
   ComponentArt.Web.UI.Rotator.CreateControlHierarchy(Boolean UseDataSource) +366
   ComponentArt.Web.UI.Rotator.OnDataBinding(EventArgs e) +70
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206
   System.Web.UI.Control.DataBind() +12
   Controls_AlertBannerl.GetAlerts() in c:\webclients\Teaneck\www\Controls\AlertBannerl.ascx.cs:20
   Controls_AlertBannerl.Page_Load(Object sender, EventArgs e) in c:\webclients\Teaneck\www\Controls\AlertBannerl.ascx.cs:12
   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.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   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