【问题标题】:Custom Sharepoint 2013 page layout throws error自定义 Sharepoint 2013 页面布局引发错误
【发布时间】:2015-01-17 11:24:57
【问题描述】:

我正在尝试为 Sharepoint 2013 创建自定义页面布局。到目前为止,我对设计管理器模板所做的唯一更改是链接 CSS 文件(链接在 PlaceHolderAdditionalPageHead 部分中),并添加了 div,每个包含到 PlaceHolderMain 部分的 Web 部件区域。页面布局预览没有问题,但是当我尝试将其设置为实际 Sharepoint 页面的布局时,我收到此错误:

“TopNavigationMenu”的 DataSourceID 必须是 IHierarchicalDataSource 类型的控件的 ID。找不到 ID 为“topSiteMap”的控件。

我尝试用谷歌搜索这个错误,但我能找到的所有实例都是由自定义 Web 部件等引起的。有谁知道这里可能是什么原因造成的?

编辑:我已确认我是网站集管理员,并且我检查了日志。他们没有提到任何新内容,但为了清楚起见,这里是日志中的完整错误:

11/19/2014 14:44:02.10 w3wp.exe (0x20C0) 0x2598 SharePoint Foundation General 8nca Medium 访问 /aa/Pages/default.aspx 时出现应用程序错误,错误=“TopNavigationMenu”的 DataSourceID 必须是 ID IHierarchicalDataSource 类型的控件。找不到 ID 为“topSiteMap”的控件。在 System.Web.UI.WebControls.HierarchicalDataBoundControl.GetDataSource() 在 System.Web.UI.WebControls.HierarchicalDataBoundControl.ConnectToHierarchicalDataSource() 在 System.Web.UI.WebControls.HierarchicalDataBoundControl.OnLoad(EventArgs e) 在 System.Web.UI .Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control .LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.... 1fbccd9c-39f9-c07e-674b-2ee9a47b3002

11/19/2014 14:44:02.10* w3wp.exe (0x20C0) 0x2598 SharePoint Foundation General 8nca Medium ...UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 1fbccd9c-39f9-c07e-674b-2ee9a47b3002

11/19/2014 14:44:02.10 w3wp.exe (0x20C0) 0x2598 SharePoint Foundation 运行时 tkau 意外 System.Web.HttpException:“TopNavigationMenu”的 DataSourceID 必须是 IHierarchicalDataSource 类型的控件的 ID。找不到 ID 为“topSiteMap”的控件。在 System.Web.UI.WebControls.HierarchicalDataBoundControl.GetDataSource() 在 System.Web.UI.WebControls.HierarchicalDataBoundControl.ConnectToHierarchicalDataSource() 在 System.Web.UI.WebControls.HierarchicalDataBoundControl.OnLoad(EventArgs e) 在 System.Web.UI .Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control .LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Page.ProcessRequestMain(Boolea... 1fbccd9c-39f9-c07e-674b -2ee9a47b3002

11/19/2014 14:44:02.10* w3wp.exe (0x20C0) 0x2598 SharePoint Foundation Runtime tkau Unexpected ...n includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 1fbccd9c-39f9-c07e-674b-2ee9a47b3002

【问题讨论】:

  • 已编辑以显示进度(因无法删除 cmets 而发表评论。)

标签: sharepoint sharepoint-2013


【解决方案1】:

原来问题出在我的母版页上。我在使用西雅图,所以我切换到奥斯陆,问题就消失了。

【讨论】:

    猜你喜欢
    • 2016-02-17
    • 2017-10-29
    • 1970-01-01
    • 1970-01-01
    • 2011-05-24
    • 1970-01-01
    • 1970-01-01
    • 2018-08-31
    • 2014-12-25
    相关资源
    最近更新 更多