Connect-PnPOnline:找不到方法
Connect-PnPOnline : Method not found
我在 PnP-PowerShell github 上发布了这个,但是我没有时间来解决这个问题,所以我也把它发布在这里。
报告问题或缺少功能
使用脚本Connect-PnPOnline -Url $url -Credentials $cred -ErrorAction Stop
像往常一样连接到http SP2013,但是突然失败了。这和另外一个案例很接近https://github.com/SharePoint/PnP-PowerShell/issues/926 但是我照他的方法做了,还是没有解决问题。它不需要脚本来失败,仅使用 cmdlet 本身也会失败。
预期行为
正在连接到 Sharepoint 站点
实际行为
脚本失败并给出此错误:
"Connect-PnPOnline : Méthode introuvable: 'Void Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(Microsoft.SharePoint.Client.ClientRuntimeContext, Int32, Int32)'.
Au caractère C:\Program Files (x86)\Provi-SP\get-template.ps1:11 : 1
Connect-PnPOnline -Url $text -Credentials $cred -ErrorAction Stop
+ CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], MissingMethodException
+ FullyQualifiedErrorId : System.MissingMethodException,SharePointPnP.PowerShell.Commands.Base.ConnectOnline
PnP-PowerShell Cmdlet 的版本:
适用于 SharePoint 2013 的即插即用 PowerShell
Cmdlet 模块的版本:
2.16.1706.1
PnP-PowerShell Cmdlets的安装方法:
使用安装模块通过 PowerShell 库安装。
我真的找到了问题所在,以及如何解决它。
首先解决:我刚刚删除了所有模块直到 NuGet,并从头开始取回所有内容,这意味着:NuGet、PowerShellGet 及其要求、PnP 模块重新更新。
其次问题:似乎 cmdlet Get-PnPWebTemplate 运行不佳,一旦使用就会与 Connect-PnPOnline 混淆,我会通知 gitHub 这件事
我在 PnP-PowerShell github 上发布了这个,但是我没有时间来解决这个问题,所以我也把它发布在这里。
报告问题或缺少功能
使用脚本Connect-PnPOnline -Url $url -Credentials $cred -ErrorAction Stop
像往常一样连接到http SP2013,但是突然失败了。这和另外一个案例很接近https://github.com/SharePoint/PnP-PowerShell/issues/926 但是我照他的方法做了,还是没有解决问题。它不需要脚本来失败,仅使用 cmdlet 本身也会失败。
预期行为
正在连接到 Sharepoint 站点
实际行为
脚本失败并给出此错误:
"Connect-PnPOnline : Méthode introuvable: 'Void Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(Microsoft.SharePoint.Client.ClientRuntimeContext, Int32, Int32)'.
Au caractère C:\Program Files (x86)\Provi-SP\get-template.ps1:11 : 1
Connect-PnPOnline -Url $text -Credentials $cred -ErrorAction Stop
+ CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], MissingMethodException
+ FullyQualifiedErrorId : System.MissingMethodException,SharePointPnP.PowerShell.Commands.Base.ConnectOnline
PnP-PowerShell Cmdlet 的版本:
适用于 SharePoint 2013 的即插即用 PowerShell
Cmdlet 模块的版本:
2.16.1706.1
PnP-PowerShell Cmdlets的安装方法:
使用安装模块通过 PowerShell 库安装。
我真的找到了问题所在,以及如何解决它。
首先解决:我刚刚删除了所有模块直到 NuGet,并从头开始取回所有内容,这意味着:NuGet、PowerShellGet 及其要求、PnP 模块重新更新。
其次问题:似乎 cmdlet Get-PnPWebTemplate 运行不佳,一旦使用就会与 Connect-PnPOnline 混淆,我会通知 gitHub 这件事