zoukankan      html  css  js  c++  java
  • How to: Add Missing ContentPlaceHolder

    In Microsoft SharePoint Server 2010, the BlueBand master page is not supported in the Search Center site templates. When you upgrade your Search Center sites, if you decide to maintain the Office SharePoint Server 2007 look, when you try to access the site, the browser displays the following error message: An Unexpected Error Has Occurred.

    This topic describes the cause of the error, and the steps to take to resolve it.

    This error occurs because the BlueBand master page is missing the SPNavigation content placeholder used for additional page editing controls. This content placeholder is required for master pages to be compatible with SharePoint Server 2010. You can verify that this is the cause of the error by checking the Unified Logging Service (ULS) logs for the entry with the matching correlation identifier (ID).

    To resolve the error, you must add the SPNavigation content placeholder to the BlueBand master page.

    To add the SPNavigation content placeholder

    1. Open your site's Site Settings page by appending /_layouts/settings.aspx to the site's URL, as follows:

      http://ServerName/SiteName/_layouts/settings.aspx

    2. Locate BlueBand.master page in the master page gallery, select it, and then click Download a Copy.

    3. Open the downloaded file in an HTML editor such as Microsoft SharePoint Designer 2010, or in a text editor such as Notepad.

    4. Add the following code at the end of the customized layout page.

       
      <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
      </asp:ContentPlaceHolder>
      
      NoteNote

      This code can be added anywhere on the master page.

    5. After you add the missing SPNavigation content placeholder, upload the updated BlueBand.master file to your site. You can either replace the existing version of BlueBand.master with the updated version, or upload the updated version as a new master page.

    http://msdn.microsoft.com/en-us/library/ff512790(v=office.14).aspx

  • 相关阅读:
    独立安装SharePoint 2013碰到的"SDDL"问题及解决方法
    软件编程21法则
    HtmlAgilityPack 之 HtmlNode类
    SpringBoot集成Hadoop3.1.3
    win10 mysql慢查询
    Java多线程并行计算(Google的Guava使用)
    win10安装hadoop3.1.3
    mapDB的基本用法
    SpringBoot集成JMH
    mysql死锁
  • 原文地址:https://www.cnblogs.com/zyip/p/3174914.html
Copyright © 2011-2022 走看看