Microsoft KB Archive/832811

= How to restore a corrupted Windows SharePoint Services home page =

Article ID: 832811

Article Last Modified on 10/19/2007

-

APPLIES TO


 * Microsoft Windows SharePoint Services 2.0
 * Microsoft Windows SharePoint Services 3.0
 * Microsoft Office SharePoint Server 2007
 * Microsoft Office SharePoint Portal Server 2003
 * Microsoft Office SharePoint Designer 2007
 * Microsoft Office FrontPage 2003

-





SUMMARY
This article describes how to restore the corrupted home page of a Microsoft Windows SharePoint Services 2.0 site or a Microsoft Windows SharePoint Services 3.0 site when you use Microsoft Office FrontPage 2003 or Microsoft Office SharePoint Designer 2007 to author a Windows SharePoint Services site. You can follow the steps in this article to revert to a functional home page if you accidentally corrupted the home page of your Windows SharePoint Services site during an edit or an author operation.

Windows SharePoint Services 3.0
Windows SharePoint Services 3.0 includes a feature that you can use to re-ghost a page. The option to re-ghost a page lets you revert to the template that does not contain any errors which is stored in the database. Follow these steps:
 * 1) Start SharePoint Designer 2007.
 * 2) On the File menu, click Open Site.
 * 3) In the Open Site dialog box, type   in the Site Name box, and then click Open.
 * 4) In the Folder List dialog box, click to select , and then right-click Check-Out.
 * 5) On the Edit menu, click Check-In.

Note A Green circle next to the page is displayed to indicate that the page is un-ghosted.
 * 1) In the Folder List dialog box, right-click , and then click Revert to Template.

Microsoft Office SharePoint Server 2007 Site Settings

 * 1) Start Internet Explorer.
 * 2) Browse the SharePoint site to locate Site Actions.
 * 3) Click Site Actions, and then click Site Settings.
 * 4) On the Site Settings page, click Reset to site definition under the Look and Feel option.
 * 5) On the Reset Page to Site Definition Version page, type   URL for the home page, and then click Reset.

Restore a corrupted Windows SharePoint Services 2.0 home page
 Copy the Default.aspx file in the Windows SharePoint Services site that contains the corrupted home page, rename the copy Defaultold.aspx, and then delete the Default.aspx file. To do so, follow these steps:  Start FrontPage 2003, and then open the Windows SharePoint Services site that contains the corrupted home page. In the Folder List, double-click the Default.aspx file. On the File menu, click Save As. In the Save As dialog box, type Defaultold.aspx in the File name box, and then click Save. In the Folder List, right-click the Default.aspx file, and then click Delete. When you are prompted to confirm the deletion, click Yes.</li></ol> </li> Create a new Windows SharePoint Services site. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> On the File menu, click New.</li> In the New task pane, under New Web site, click SharePoint team site.</li> In the Web Site Templates dialog box, click SharePoint Team Site, and then click OK.</li> Under Options, type the URL of the new Windows SharePoint Services site.

For example, you can create the new site as a subsite of the site that contains the corrupted home page. If the URL of the site that contains the corrupted home page is http:// /Sites/TeamSite, you can specify a URL such as http:// /Sites/TeamSite/ for your new site.</li> Open the new site that you created.

To do so, on the File menu, click Open Site, in the Site name box, type the URL of the new site that you created earlier in step 2, and then click Open.</li> In the Folder List, double-click the Default.aspx file, and then click Copy.</li> Change to the original site that contains the corrupted home page, right-click an empty area under the Folder List, and then click Paste.</li></ol> </li> Delete any corrupted Web Parts that are located on the Default.aspx page. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> Connect to the home page (the Default.aspx page) of your original site in your Web browser.</li> Click Modify Shared Page, and then click Design this Page.</li> Click the down arrow next to the Web Parts that you want to delete, and then click Delete.</li> Click Yes when you are prompted to confirm the deletion.</li></ol> </li> Add the Web Parts that you deleted to the Default.aspx page. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Modify Shared Page, click Add Web Parts, and then click Browse.</li> Add the Web Parts that you want to your home page.

For example, drag the Announcements Web Part and the Events Web Part to the page.</li></ol> </li> <li>If the Home link is missing from the top link bar, add the link to the home page back to the top link bar. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In FrontPage 2003, open the site (if it is not already open).</li> <li>In the Folder List, double-click the Default.aspx file.</li> <li>In the link bar, click add link.</li> <li>In the Add to Link bar dialog box, type Home in the Text to display box, click the Default.aspx file, make sure that Default.aspx is displayed in the Address box, and then click OK.</li> <li>Double-click the link bar.</li> <li>In the Link Bar Properties dialog box, click the General tab, and then in the Links box, make sure that Home link appears at the top of the list.</li></ol> </li> <li>After you finish recovering the home page, delete the Defaultold.aspx file. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In the Folder List, right-click the Defaultold.aspx file, and then click Delete</li> <li>When you are prompted to confirm the deletion, click Yes.</li></ol> </li></ol>

<div class="references_section">