Upgrades Questions on upgrading to version 7.x.
Version 7.x > Upgrades > Master Page Display Issue View modes: 
User avatar
Member
Member
robert.vlad-bayer - 1/11/2014 11:13:46 AM
   
Master Page Display Issue
Hello,

I have successfully upgraded my sites from Kentico CMS 6.0 to 7.0.

I am using the Portal Page template and get the following error when loading the Page tab of the master page:

There was an error processing the page. The error can be caused by the configuration of some component on the master page. Check the master page configuration or see event log for more details. Original message: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

Does anyone have a solution for this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/11/2014 9:48:08 PM
   
RE:Master Page Display Issue
Do you have any <%= %> blocks on your master page? If so, this could cause problems. Have you checked your event logs to see for more specific error?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/12/2014 4:07:56 AM
   
RE:Master Page Display Issue
Hello.

If you get this error message you may need to modify the code of your web part, so that it doesn't display any content on the Design tab - for example:

[C#]

using CMS.PortalEngine;

public override void OnContentLoaded()
{
base.OnContentLoaded();
if ((this.PagePlaceholder.ViewMode == ViewModeEnum.Design)
|| (this.HideOnCurrentPage) || (!this.IsVisible))
{
this.Repeater1.DataSourceID = "";
this.CMSRepeater1.StopProcessing = true;
}
}

Also, is there any additional info in your Event log in Site Manager / Administration section? Thank you.

Best Regards,
Radek Macalik