Today I tried to debug the site using VS 2008 and got the following exception:
System.Web.HttpException was unhandled by user code
ErrorCode=-2147467259
Message="The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."
Source="System.Web"
StackTrace:
at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Utilities.MSAJAX.Register(Page objPage) at DotNetNuke.UI.Utilities.MSAJAX.RegisterClientScript(Page objPage, String Path) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientScriptBlock(Page objPage, String key) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientScriptBlock(Page objPage, String key, String strScript) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames, String strPersonalizationNamingCtr, String strPersonalizationKey) at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, String strPersonalizationNamingCtr, String strPersonalizationKey) at DotNetNuke.UI.ControlPanels.IconBar.Page_PreRender(Object sender, EventArgs e) in C:\DotNetNuke\Admin\ControlPanel\IconBar.ascx.vb:line 379 at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Does anyone know how to fix this problem? I am new to DNN. This is a clean install of the community version of DNN 5.1 Should I quit and install DNN 4.X instead? Please someone help! Thanks.