I wonder if you have seen this because I cannot run a new instatllation of 5.1.
It occurs in function Public Shared Sub EnableMinMax(ByVal objButton As Control, ByVal objContent As Control, ByVal intModuleId As Integer, ByVal blnDefaultMin As Boolean, ByVal strMinIconLoc As String, ByVal strMaxIconLoc As String, ByVal ePersistanceType As MinMaxPersistanceType, ByVal intAnimationFrames As Integer, ByVal strPersonalizationNamingCtr As String, ByVal strPersonalizationKey As String)
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) in C:\DotNetNuke_Community\Library\UI\Utilities\ClientAPI.vb:line 155
at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, String strPersonalizationNamingCtr, String strPersonalizationKey) in C:\DotNetNuke_Community\Library\UI\Utilities\ClientAPI.vb:line 145
at DotNetNuke.UI.ControlPanels.IconBar.Page_PreRender(Object sender, EventArgs e) in C:\DotNetNuke_Community\Website\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) |