指定的对象不属于列表

时间:2013-06-25 14:55:39

标签: sharepoint-2007 master-pages moss sharepoint-designer

我在查看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
.
.
.

仅在我登录时抛出此异常。 我已经完成了项目,有人告诉我这可能是一个主页问题。

每当我在sharepoint设计器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.

0 个答案:

没有答案