c#executequery 底层连接已关闭:发送时发生意外错误

时间:2021-07-02 14:01:30

标签: c# sharepoint

我有以下代码:

AuthenticationManager authManager = new AuthenticationManager();
clientContext = authManager.GetAzureADCredentialsContext(site, userSP, passWord);
clientContext.ExecuteQuery();

但是这段代码运行良好,

<块引用>

clientContext.ExecuteQuery();

开始投掷

<块引用>

底层连接已关闭:发生意外错误 发送

我按照这个 option 并更改为 tTls12 但它不起作用。 我还使用了 GetSharePointOnlineAuthenticatedContextTenant 而不是 GetAzureADCredentialsContext

可能是什么原因?如何解决这个问题?

0 个答案:

没有答案
相关问题