You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing PnP.Powershell from PSGallery 2.4 includes a copy of Micrsoft.Graph.Core.dll version 1.25.1. This conflicts with the version of this dll installed by Microsoft.Graph 2.x.x
Expected behavior
PnP.Powershell and Micrsoft.Graph should both be usable in a single Powershell Session.
Actual behavior
Actual behaviour depends on which module is connected first.
If PnP.Powershell connects first, Connect-Graph (using Certificate authentication) will throw errors similar to:
ClientCertificateCredential authentication failed: Could not load type 'Microsoft.Identity.Client.BaseAbstractApplicationBuilder`1' from assembly 'Microsoft.Identity.Client, Version=4.50.0.0,
If Microsoft.Graph is loaded first, and then PnP.Powershell, connection will succeed.
However, calls to Get-MgUser will result in errors:
Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0
Steps to reproduce behavior
Clear out all old versions of PnP.Powershell and Microsoft.Graph.
Install PnP.Powershell 2.4.0 and Microsoft.Graph 2.x.x (tested with 2.16.0 and 2.17.0 and several others)
Attempt to connect to PnP.Powershell and Micrsoft.Graph using Certificate authentication.
What is the version of the Cmdlet module you are running?
2.4.0
Which operating system/environment are you running PnP PowerShell on?
[ X] Windows
Linux
MacOS
Azure Cloud Shell
Azure Functions
Other : please specify
Steps to correct
Locate Microsoft.Graph.Core.dll from the module storage Modules\Microsoft.Graph.Authentication\2.x.x\dependencies\Core
Copy this file to Modules\PnP.Powershell\2.4.0, overwriting the version 1.25.1
Connect-Graph
Connect-PnPOnline
.. work as normal.
PnP.Powershell appears to be happy to use the current version (2.17.0) of this DLL, but Graph v2.x.x cannot function if the 1.25.1 dll has been loaded.
The text was updated successfully, but these errors were encountered:
Reporting an Issue
Installing PnP.Powershell from PSGallery 2.4 includes a copy of Micrsoft.Graph.Core.dll version 1.25.1. This conflicts with the version of this dll installed by Microsoft.Graph 2.x.x
Expected behavior
PnP.Powershell and Micrsoft.Graph should both be usable in a single Powershell Session.
Actual behavior
Actual behaviour depends on which module is connected first.
If PnP.Powershell connects first, Connect-Graph (using Certificate authentication) will throw errors similar to:
ClientCertificateCredential authentication failed: Could not load type 'Microsoft.Identity.Client.BaseAbstractApplicationBuilder`1' from assembly 'Microsoft.Identity.Client, Version=4.50.0.0,
If Microsoft.Graph is loaded first, and then PnP.Powershell, connection will succeed.
However, calls to Get-MgUser will result in errors:
Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0
Steps to reproduce behavior
Clear out all old versions of PnP.Powershell and Microsoft.Graph.
Install PnP.Powershell 2.4.0 and Microsoft.Graph 2.x.x (tested with 2.16.0 and 2.17.0 and several others)
Attempt to connect to PnP.Powershell and Micrsoft.Graph using Certificate authentication.
What is the version of the Cmdlet module you are running?
2.4.0
Which operating system/environment are you running PnP PowerShell on?
Steps to correct
Locate Microsoft.Graph.Core.dll from the module storage Modules\Microsoft.Graph.Authentication\2.x.x\dependencies\Core
Copy this file to Modules\PnP.Powershell\2.4.0, overwriting the version 1.25.1
Connect-Graph
Connect-PnPOnline
.. work as normal.
PnP.Powershell appears to be happy to use the current version (2.17.0) of this DLL, but Graph v2.x.x cannot function if the 1.25.1 dll has been loaded.
The text was updated successfully, but these errors were encountered: