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?


2 Answers 2


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

  • 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, 2013 at 10:49
  • 1
    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? Feb 7, 2013 at 11:29
  • OK, I found the ULS log. How do I find the stack trace?
    – finisterre
    Feb 7, 2013 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 Feb 7, 2013 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, 2013 at 11:02

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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