Sometimes you copy the Page Layouts to another server or another web application. In these scenarios you may encounter some problems in cases that you want to modify the page in browser or SharePoint Designer. For example when you want to modify the page in browser you may encounter this problem “Value does not fall within the expected range”. Or if you try to modify the page in the SharePoint Designer and you try to detach the Page from its Page Layout (To customize), the system gives you an error.
This is because the codes in the page are using the Page Layout with the old URL. So you should modify this URL in the page code.
You can do this by:
- Select the Page in SharePoint Designer and Export it (File > Export) to your hard drive.
- Open the exported file in an editor like Notepad.
- Search for “mso:PublishingPageLayout”. You will find that the URL inside this tag is invalid.
- So Change the URL and Import the file to the new server.
I found the solution in this blog and it was helpful to me. Thanks to ¥ong¥s .