I had been using the script and it was working great. Then went to deploy it on a new machine and it failed with the following error.
VERBOSE: Error checking for updates: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
TerminatingError(Connect-PnPOnline): "Host not reachable"
The new deployment pulled SQLServer module version 22.1.1 which appears to have added Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0 wihc is in conflict with the PnP.PowerShell that included version 6.
I forced the script to use SQLServer version 21.1.18256 and everything is great again.
Love the script. Thank you.
I had been using the script and it was working great. Then went to deploy it on a new machine and it failed with the following error.
The new deployment pulled SQLServer module version 22.1.1 which appears to have added Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0 wihc is in conflict with the PnP.PowerShell that included version 6.
I forced the script to use SQLServer version 21.1.18256 and everything is great again.
Love the script. Thank you.