Solved

Sharepoint Cannot find ContentPlaceHolder

Posted on 2011-02-10
3
881 Views
Last Modified: 2012-05-11
We had a programmer create a customer master publishing page.    We want to change the page back to a default master page, but when we change it in site settings, we get the following error.

Cannot find ContentPlaceHolder 'PlaceHolderRightActions' in the master page '/_catalogs/masterpage/v4_custom.master', verify content control's ContentPlaceHolderID attribute in the content page.

I've tried a few different master pages and they all return the same error.    The only one that does not is the customized master page.
0
Comment
Question by:wsaharem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 500 total points
ID: 34865139
this means, that you have not defined the Content place holder control in that master page
but your content requires it and is trying to use it

If you want you can share the code for the master here and I will point out the changes.

Best of luck
0
 
LVL 7

Expert Comment

by:foobarr
ID: 34891867
You need to check if your deployed farm or sanboxed solutions, and see if those projects are using the "PlaceHolderRightActions" content place holder.  You can simply comment it out and that should remove the error.  Should look like <asp:ContentPlaceHolder Id="content123" runat="server" contentplaceholderid="PlaceHolderRightActions">...</asp:contentplaceholder>

You could always just add that placeholder into your default.master and then just hide it using client side code css.  If you hide it using visible="false" or server side code, I find it gives the same error

0
 
LVL 1

Author Closing Comment

by:wsaharem
ID: 34919336
Just removing the tag was not sufficient.  I had to put the tag in the new master page, but commented it out.   That allowed the new master page to load.  Odd, but it worked.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question