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'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?


share|improve this question
up vote 3 down vote accepted

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


for site collection and


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

you can change it either with attach command or change in directly in one place of code.

enter image description here

share|improve this answer

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.