Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...5.1.4 Migration -  The control collection cannot be modified during DataBind, Init, Load..... 5.1.4 Migration - The control collection cannot be modified during DataBind, Init, Load.....
Previous
 
Next
New Post
10/17/2009 4:45 PM
 

Just wondering If anybody has found the magic bullet for this ? 
   The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases  ....

  I upgraded my local development environment from 4.9.3 to 5.1.4.  A couple of small battles, but got that working. I have been testing it on my development box for about a week, it looked good, so, I migrated up to my godaddy production envirnment.
  My migration went like this ...
  ON PRDUCTION, MY DNN IS A SUBFOLDER !!
  replace he dnn database on godaddy with my dev dnn database.
  Remove all 4.9.3 dnn folders.
  FileZilla my dev dnn folders up to godaddy.
  Fix the permissions, etc. (this process of migrating worked for 4.9.3)

  Had a couple of errors, then finally this one. 
     I am getting this after I type in my url and press enter, so, I never see my home page. (havnt yet) 
  Here is ruffly what I see ...

   An error has occurred.
   An error has occured.  (twice0
                                                                              <-- Return to site.

  I can get into my godaddy dnn database, and there I can see the eventlogs.
  That is where I can see the exact error.  Here are the details 
  (This was coped from the EventLog database ntext field ) :
*******************************************
<LogProperties><LogProperty><PropertyName>AssemblyVersion</PropertyName><PropertyValue>5.1.4</PropertyValue>
</LogProperty><LogProperty><PropertyName>PortalID</PropertyName><PropertyValue>0</PropertyValue></LogProperty><
LogProperty><PropertyName>PortalName</PropertyName><PropertyValue>Information Quality Works</PropertyValue></LogProperty><LogProperty><PropertyName>UserID</PropertyName><PropertyValue>-1</PropertyValue></LogProperty><LogProperty><PropertyName>UserName</PropertyName><PropertyValue /></LogProperty>
<LogProperty><PropertyName>ActiveTabID</PropertyName><PropertyValue>38</PropertyValue></LogProperty><LogProperty>
<PropertyName>ActiveTabName</PropertyName><PropertyValue>Home</PropertyValue></LogProperty><LogProperty>
<PropertyName>RawURL</PropertyName><PropertyValue>/iqdnn/Default.aspx</PropertyValue></LogProperty><LogProperty>
<PropertyName>AbsoluteURL</PropertyName><PropertyValue> /iqdnn/Default.aspx</PropertyValue></LogProperty><LogProperty>
<PropertyName>AbsoluteURLReferrer</PropertyName><PropertyValue>http://www.iqworks.com/iqdnn/</PropertyValue></LogProperty>
<LogProperty><PropertyName>UserAgent</PropertyName><PropertyValue>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .
NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
</PropertyValue></LogProperty><LogProperty><PropertyName>DefaultDataProvider</PropertyName><PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider</PropertyValue></LogProperty><LogProperty><PropertyName>ExceptionGUID</PropertyName>
<PropertyValue>88e993d5-420a-444a-be7c   
08c0ce788520</PropertyValue></LogProperty><LogProperty><PropertyName>InnerException</PropertyName><PropertyValue>
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.</PropertyValue></LogProperty><LogProperty><PropertyName>FileName</PropertyName><PropertyValue /></LogProperty>
<LogProperty><PropertyName>FileLineNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty><
PropertyName>FileColumnNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty>
<PropertyName>Method</PropertyName><PropertyValue>System.Web.UI.ControlCollection.Add</PropertyValue>
</LogProperty><LogProperty><PropertyName>StackTrace</PropertyName><PropertyValue /></LogProperty>
<LogProperty><PropertyName>Message</PropertyName><PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException:
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. --->
System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. 
 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.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)   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)   --- End of inner exception stack trace ---
</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /></LogProperty></LogProperties>

******************************************* 
 1)  I tried putting AjaxTookit 1.0 in the dnn/bin and putting in those binding redirects to ajax 3.5.
<!--iqworks 091017a Upgrade 5.1.4 to gdaddy Need this because DNN comes with version
     AjaxControlToolKit.dll 1.0 -->
 <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
   <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.20229.0" newVersion="3.5.0.0" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.20229.0" newVersion="3.5.0.0" />
   </dependentAssembly>
  </assemblyBinding>
 </runtime>
 <!-- end of iqworks 091017a Upgrade 5.1.4 to gdaddy -->

 2)  I tried changing EnableAJAX To "N". 

 3)  I tried the

<!--iqworks 091017a to fix error -->
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
     <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    </sectionGroup>
   </sectionGroup>
  </sectionGroup>
  <!-- End iqworks 091017a to fix error -->

Thanks for your time. 

 
New Post
10/17/2009 11:53 PM
 

  Some additional background ....
  First, I am using dnn in my environment as a subfolder app scenerio. I had 4.9.3 in this environment before migrating my 5.1.4.  And 4.9.3 worked fine.  
1) Godaddy does have Microsoft ASP.NET 2.0 AJAX Extensions Toolbox Package 1.0.61025 AJAXEextensionsToolbox.dll. At least when I go to add a reference, click add, its under the .NET tab. When I select it, it adds it to my main application’s bin. And shows up in the list of references as a “BIN Auto Update”.
2) I am using AjaxControlToolkit.dll 3.5 for my main application, and I hope to use it for my dnn sub-app.
3) My dnn 5.1.4 has AjaxControlToolkit.dll 1.0.20229.0 in its bin.
4) Recycle the app ? I went into my web.config, pushed the first line over and saved,
did that recycle the app ?
5) Godaddy does use medium-trust - http://help.godaddy.com/article/1039
6) My target framework is 3.5.

 
New Post
10/19/2009 12:43 PM
 

   I needed to have this correctly applied ..... 
<httpModules>

<

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

</httpModules>

    Without it, my DNN site would produce the above error during Application Start (when you enter the dnn url and press enter) and the login page would not even display. Instead, an error page displays. At that point, you have to go into the DNN database EventLog table to see the error detail.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...5.1.4 Migration -  The control collection cannot be modified during DataBind, Init, Load..... 5.1.4 Migration - The control collection cannot be modified during DataBind, Init, Load.....


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out