1

我在可视化 时遇到问题http://servername/SearchCenter/,它显示以下消息:

Microsoft.SharePoint.SPException: the object specified does not belong to a list

并显示堆栈跟踪:

    [SPException: the object specified does not belong to a list.]
       Microsoft.SharePoint.SPWeb.GetItem(String strUrl, Boolean bFile, Boolean cacheRowsetAndId) +578
.
.
.

并且仅在我登录时才抛出此异常。我已经完成了项目,有人刚刚告诉我这可能是母版页问题。

每当我在共享点设计器中打开子SearchCenter站点SearchCenter/Pages/Default.aspx 时,它都会重定向到根解决方案并打开_catalogs/Pages/searchmain.aspx

中的代码searchmain.aspx有标题。

<%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral"
 meta:progid="SharePoint.WebPartPage.Document" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

我创建时出现同样的错误subsite,当您单击创建时,它会输出:

The object specified does not belong to a list.   at Microsoft.SharePoint.SPWeb.GetItem(String strUrl, Boolean bFile, Boolean cacheRowsetAndId) 
   at Microsoft.SharePoint.SPFile.get_Item() 
   at Microsoft.SharePoint.Publishing.PublishingWeb.GetPageLayoutCollectionFromStringMustCloseFileWeb(String pageLayoutUrls, Char[] delimiters, SPSite site) 
   at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults()

它也出现在第一页。

 ! The specific object doesn't belong to a list.
4

0 回答 0