尝试获取库列表时遇到ClientRequestException(Sharepoint CSOM 2010) [英] I'm getting a ClientRequestException when trying to get my libraries list (Sharepoint CSOM 2010)

查看:104
本文介绍了尝试获取库列表时遇到ClientRequestException(Sharepoint CSOM 2010)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hellu

该异常完全没有理由出现,就像那样. 15分钟前,我完全没有问题.也许我办公室里有人用我们的SharePoint Online做过一些事,但是据我所知,这是当时我唯一的人.

This exception appeared for no reason at all, just like that. 15 minutes earlier, I had no problems at all. Maybe someone at my office did something with our SharePoint Online, but it's seems unlikely as, as far as I know, I'm the only one working on it at the time.

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

So I searched the web for a while, hearing about problems with claims based connection, and using SharePointOnlineCredentials... Yet I'm on a 2010 version, and I don't have access to this class.

这是我用来连接的代码段(与最受欢迎"的

Here's the snippet I use to connect (with the "most popular" 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;
}

关于如何解决此问题的任何想法?

Any idea on how to solve this?

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

For the note, the exception message ends with a "Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()" call.

推荐答案

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

I got it... You just have to check your account on a browser and not in your application, because the password has probably expired.

这篇关于尝试获取库列表时遇到ClientRequestException(Sharepoint CSOM 2010)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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