SharePoint annoyance 02 – Don’t forget to specify the right permissions settings on your master page gallery when you define a custom site definiton with a custom master page and you use only custom (non ootb) SharePoint groups


When you have custom groups in your SharePoint solution, make sure that the master page gallery is either inheriting permissions from its parent to include the custom groups that you created (or manually add the required ones).

It took me nearly a day to figure out why I get this kind of error when I was creating a custom (sub) site using a custom site definition with a contributor coming from my custom groups.

The specified ChromeMasterUrl '/_catalogs/masterpage/BlueOcean.master' must be a server-relative url within site collection '/'.   at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.SetLayoutRelatedProperties(PublishingWeb area, Boolean& updateRequired)

Basically, my custom contributor groups had no read access on the .master file which raised the exception stated above. Fixing the security on the master page gallery solved it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s