Editing the default master page

Error while editing the default master page of MOSS 2007

While editing default master page of MOSS 2007, i found the following error:

An unexpected error has occurred

The cause of this issue are the missing content placeholders in asp.net page.

Here are the steps on finding the missing content place holders manually.

  1.  Navigate to the master page

  2. Go to Code view. Go to Edit | Find.

  3. In the Find and Replace dialog, enter: "<asp:contentplaceholder" (without quotes). Click Find All.

  4. Reference the occurrences found in the file with that of available content place holders:

– PlaceHolderBodyAreaClass

– PlaceHolderBodyLeftBorder

– PlaceHolderBodyRightMargin

– PlaceHolderCalendarNavigator

– PlaceHolderFormDigest

– PlaceHolderGlobalNavigation

– PlaceHolderHorizontalNav

– PlaceHolderLeftActions

– PlaceHolderLeftNavBar

– PlaceHolderLeftNavBarBorder

– PlaceHolderLeftNavBarDataSource

– PlaceHolderLeftNavBarTop

– PlaceHolderMain

– PlaceHolderMiniConsole

– PlaceHolderNavSpacer

– PlaceHolderPageDescription

– PlaceHolderPageImage

– PlaceHolderSearchArea

– PlaceHolderSiteName

– PlaceHolderTitleAreaClass

– PlaceHolderTitleAreaSeparator

– PlaceHolderTitleBreadcrumb

– PlaceHolderPageTitleInTitleArea

– PlaceHolderTitleLeftBorder

– PlaceHolderTitleRightMargin

– PlaceHolderTopNavBar

– PlaceHolderUtilityContent

– SPNavigation

– WSSDesignConsole


5.
Iteratively add any missing content place holders to the master page in
the form of: <asp:ContentPlaceHolder id="PlaceHolderName"
runat="server" />. Replace PlaceHolderName with that of the actual
content place holder name.

6.
Save master page (Check In, and Approve if necessary) after each added
content place holder, and test to see if error still occurs.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s