Resource Page Description
When moving a database with backup/restore between different web farms the URL from the Publishing Pages to the PageLayout often contains the server name of the original farm.
That can lead to exceptions. Details can be found here:
http://blogs.technet.com/stefan_gossner/archive/2008/03/12/common-error-situation-with-when-using-backup-restore-to-transfer-a-database-to-a-new-farm-on-moss-2007.aspx
This tool allows to correct this problem.
To build this tool you need to
- create a new C# console application project in VS.NET with name "FixPageLayout"
- replace the .cs file with the FixPageLayout.cs file included in this download
- add references to Microsoft.SharePoint.dll and Microsoft.SharePoint.Publishing.dll
- build the project
Syntax to use the tool:
FixPageLayout.exe <url-to-sitecollection>