Replies: 3 comments
-
any solution to this? get the same issue |
Beta Was this translation helpful? Give feedback.
-
Check out what assemblies collide and either make sure that version of those modules are older, or force the load of the conflicting module by calling the module with the affected assembly. As an example, if your PnP.PowerShell and MgGraph have an assembly version conflict with authentication, force load the module you want to "win" the assembly conflict by connecting to graph and fetch a single user
|
Beta Was this translation helpful? Give feedback.
-
Thank you, this works, indeed its conflict between Graph and Pnp I have latest Pnp, but Graph 2.28, and I dont see a PnP documentation that says on which version it depends |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
if i run it in a windows all by itself there is no issues but running in a Runspace or if modules have been loaded first i am getting the error
Connect-PnPOnline -Url $SiteURL -Credentials $Cred
PowerShell: 7.4.1
Installed Version: 2.5.0
Error: Failed to connect to https://URL. Error details: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral
Beta Was this translation helpful? Give feedback.
All reactions