After upgrading an environment from 2010 to 2013 via DB detach/attach (uninstalling QuickApps before the dettach and installing the correct version after the attach), on any page with QA or when trying to add a Web Part, the following error is thrown:
"Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."
If you create a new Web Part page and add an OOB SharePoint web part, everything works. The Configuration Editor has been run and the web.config is correctly modified.