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'm using SharePoint Designer 2010. I edit mypage.aspx and change the first line from MasterPageFile="~masterurl/default.master" to MasterPageFile="~masterurl/minimal.master" to use a different master page for the page.

When I save changes and then visit the page, I get:

Error The file or folder name contains characters that are not permitted. Please use a different name. Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 0f774212-4f09-45f0-bc06-59406f2db725 Date and Time: 06/02/2013 15:38:52

What am I doing wrong?

Thanks.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should use another replaceable token with miminal.master (~masterurl won't work), so use:

~sitecollection/_catalogs/masterpage/minimal.master

for site collection and

~site/_catalogs/masterpage/minimal.master 

for master page on a site

share|improve this answer
    
Thanks for the suggestion. Tried both, on a page in the top level site of the site collection. Got UNEXPECTED ERROR both times. –  finisterre Feb 7 '13 at 10:49
    
You may see UNEXPECTED ERROR because on your page you are using ContentPlaceHolder which is not specified in minimal.master (For example PlaceHolderLeftActions). Could you please find error in ULS log by correlation Id and provide full message and stack trace? –  Kai Feb 7 '13 at 11:29
    
OK, I found the ULS log. How do I find the stack trace? –  finisterre Feb 7 '13 at 14:50
    
Refresh the page with an error, as the result new correlation Id will be generated, find recent log by modified date and search inside by correlation Id –  Kai Feb 7 '13 at 14:53
    
Thanks. I managed to view the ULS log and see which Placeholders were causing the problem. Then I found a simpler solution to havng a minimal page. In the end, I copied v4.master to blank.master. Edited blank.master and hid the parts of the page I didn't want with style="display:none". Then set mypage.aspx to use blank.master as its master page. –  finisterre Feb 8 '13 at 11:02

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.