列表不存在。您选择的页面包含一个不存在的列表。它可能已被其他用户删除。 [英] List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user.

查看:138
本文介绍了列表不存在。您选择的页面包含一个不存在的列表。它可能已被其他用户删除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用SharePoint Online。我必须检查母版页和页面布局的权限。当我转到母版页和页面布局时,它会显示母版页和所有页面布局。然后我去列出设置,它通过错误并说"列表
不存在。
您选择的页面包含一个不存在的列表。 它可能已被其他用户删除。"

I am using SharePoint Online. I have to check permission on Master Pages and Page Layouts. When I go to Master Page and Page Layout, it shows master pages and all the pages layouts. Then I go to list settings, it through error and says "List does not exist.The page you selected contains a list that does not exist.  It may have been deleted by another user."


我尝试使用SharePoint Designer,但它也可以通过错误"SharePoint Designer无法显示项目" 

I tried using SharePoint Designer, but it also through error as "SharePoint Designer cannot display item" 

网站运行良好。请让我知道解决方案。

While site is running well. Please let me know the solution.

谢谢


推荐答案

嗨Rajesh,

Hi Rajesh,

SPList list = web.Lists.TryGetList("Pages");

                        if (list != null)
                        {
                            String url = list.RootFolder.ServerRelativeUrl.ToString();

                            PublishingSite pubSite = new PublishingSite(web.Site);
                            PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);
                            publishingWeb.PagesListId = list.ID;
                            publishingWeb.Update();

}

// Do your code

/* Hope it help, It worked for me. */


这篇关于列表不存在。您选择的页面包含一个不存在的列表。它可能已被其他用户删除。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆