OfficeDevPnP.Core.AuthenticationManager GetWebLoginClientContext 抛出 "Navigation to the webpage was canceled"
OfficeDevPnP.Core.AuthenticationManager GetWebLoginClientContext throws "Navigation to the webpage was canceled"
我有一个连接到共享点列表的小应用程序。为此,我们使用以下 (VB.NET) 代码:
Imports Microsoft.SharePoint.Client
Public Class SendDataToSharePointList
Private SharePointSite As String '= download from database
Private authManager As New OfficeDevPnP.Core.AuthenticationManager
Private Sub Connect()
clientcontext = authManager.GetWebLoginClientContext(SharePointSite)
....
End Sub
这对我们 99% 的用户来说工作得很好:“GetWebLoginClientContext”抛出一个登录屏幕,当连接时,屏幕消失。
但是,一位用户报告了以下错误:
而且我们无法弄清楚为什么...更改 IE 安全设置并删除 IE 中的 cookie 没有任何效果。有人知道是什么原因造成的吗?
非常感谢!
此调用调用 Internet Explorer 的内部嵌入式控件。在默认启用 Internet Explorer 增强安全性的服务器系统中,重定向到 Microsoft 登录页面会因为不安全而被取消。禁用 Internet Explorer 的增强安全性以解决此问题。它在服务器管理器中完成。您必须重新启动 Windows 才能禁用它。
我有一个连接到共享点列表的小应用程序。为此,我们使用以下 (VB.NET) 代码:
Imports Microsoft.SharePoint.Client
Public Class SendDataToSharePointList
Private SharePointSite As String '= download from database
Private authManager As New OfficeDevPnP.Core.AuthenticationManager
Private Sub Connect()
clientcontext = authManager.GetWebLoginClientContext(SharePointSite)
....
End Sub
这对我们 99% 的用户来说工作得很好:“GetWebLoginClientContext”抛出一个登录屏幕,当连接时,屏幕消失。
但是,一位用户报告了以下错误:
而且我们无法弄清楚为什么...更改 IE 安全设置并删除 IE 中的 cookie 没有任何效果。有人知道是什么原因造成的吗?
非常感谢!
此调用调用 Internet Explorer 的内部嵌入式控件。在默认启用 Internet Explorer 增强安全性的服务器系统中,重定向到 Microsoft 登录页面会因为不安全而被取消。禁用 Internet Explorer 的增强安全性以解决此问题。它在服务器管理器中完成。您必须重新启动 Windows 才能禁用它。