SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a custom master page layout. The problem is that it works great if i install it with the Web-interface or with SPD.. Unfortunately everytime i try to deploy it using VS either direct deployment or as a .wsp via powershell and activate it using SPD it says on the sp-site that this masterpage is not valid and i should choose another one.

Am i missing some information in the elements.xml or the feature?

little bit lost..

kind regards,


share|improve this question
Are you referring to a Master Page or a Page Layout? They are two different things. – Dave Wise Mar 14 '12 at 16:01
im referring to a master page.. – Peter Mar 14 '12 at 16:17
up vote 1 down vote accepted

Check the Elements.xml and make sure that you have the Type="GhostableInLibrary" attribute included on the <File ... /> line that references your master page. You may also need a <Property Name="ContentTypeId" Value="0x010105" /> child element as well.


<File Url="MyCustomMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >
    <Property Name="UIVersion" Value="4" />
    <Property Name="ContentTypeId" Value="0x010105" />
share|improve this answer
thanks so far - the error doesn't appear in the solution gallery anymore - still now im confronted with this little hurdle:… i will get at it tomorrow and check where something is wrong! – Peter Mar 14 '12 at 16:54
cleaned the master page from SPD tags and it works finally.. – Peter Mar 15 '12 at 9:57
Ah, yes. You've got to love Designer! No, really! You don't have a choice so you might as well start repeating that to yourself now in the hopes of eventually believing it. – Dave Wise Mar 15 '12 at 14:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.