This project has moved. For the latest updates, please go here.

RSSHyperLink - control collection cannot be modified during DataBind...

Topics: Developer Forum, User Forum
Sep 10, 2007 at 10:36 PM
Ive added the RSSHyperlink to a page and I get this:

HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
System.Web.UI.ControlCollection.Add(Control child) +2105903
RssToolkit.Web.WebControls.RssHyperLink.OnPreRender(EventArgs e) +300
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


Any idea what might be wrong?
Nov 15, 2007 at 1:36 PM
Maybe try adding runat="server" to the head of your page.