【问题标题】:I'm getting a ClientRequestException when trying to get my libraries list (Sharepoint CSOM 2010)尝试获取我的库列表时出现 ClientRequestException (Sharepoint CSOM 2010)
【发布时间】:2023-03-03 10:31:01
【问题描述】:

你好

这个异常根本无缘无故出现,就这样。 15 分钟前,我完全没有问题。也许我办公室的某个人使用我们的 SharePoint Online 做了一些事情,但这似乎不太可能,因为据我所知,我是当时唯一一个在做这件事的人。

所以我在网上搜索了一段时间,听说基于声明的连接存在问题,并使用 SharePointOnlineCredentials...但是我使用的是 2010 版本,并且无法访问此类。

这是我用来连接的 sn-p(与“最受欢迎的”MsOnlineClaimsHelper):

this.user = user;
this.password = password;
this.siteHttps = siteHttps;
claimsHelper = new MsOnlineClaimsHelper(this.siteHttps, this.user, this.password);
using (context = new ClientContext(this.siteHttps))
{
    context.ExecutingWebRequest += claimsHelper.clientContext_ExecutingWebRequest;
}

你知道如何解决这个问题吗?

对于注释,异常消息以“Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()”调用结束。

【问题讨论】:

    标签: c# sharepoint sharepoint-2010 sharepoint-clientobject csom


    【解决方案1】:

    我知道了...您只需在浏览器中检查您的帐户,而不是在您的应用程序中检查,因为密码可能已过期。

    【讨论】:

      猜你喜欢
      • 2019-08-03
      • 1970-01-01
      • 2015-11-28
      • 1970-01-01
      • 1970-01-01
      • 2016-03-06
      • 2019-07-13
      • 1970-01-01
      • 2012-10-22
      相关资源
      最近更新 更多