Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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,

peter

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

1 Answer 1

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.

i.e.

<File Url="MyCustomMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" >
    <Property Name="UIVersion" Value="4" />
    <Property Name="ContentTypeId" Value="0x010105" />
</File>
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: blogs.msdn.com/b/syedi/archive/2009/06/20/… 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

 
discard

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.