MSAL.PS icon indicating copy to clipboard operation
MSAL.PS copied to clipboard

"Microsoft.Identity.Client.dll" conflicts w/same assembly from ExchangeOnlineManagement module

Open cobdev opened this issue 2 years ago • 3 comments

Hello Everyone,

It appears that "Microsoft.Identity.Client.dll" packaged with the current version of MSAL.PS v4.37.0.0 is in conflict with that of ExchangeOnlineManagement v3.1.0. This happens in PowerShell 7.3.2, but not when the same commands are run in PowerShell 5.1.

2023-05-09_12-12

cobdev avatar May 09 '23 19:05 cobdev

MSAL 3.1.0 is extremely old, is there a version that uses MSAL 4.* ? PowerShell and .NET doesn't allow for 2 versions of the same DLL to be loaded into memory at once.

bgavrilMS avatar Jun 07 '23 11:06 bgavrilMS

FYI: v3.1.0 is the most recent version of the "ExchangeOnlineManagement" module: https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.1.0

I'm refering to the error MSAL throws in this case.

cobdev avatar Jun 20 '23 17:06 cobdev

I had problems with these two modules not cooperating also.

I am using Windows PowerShell. The ExchangeOnlineManagement version of Microsoft.Identity.Client.dll was loaded into the GAC. I changed the code to load the MSAL.PS module first and was able to get past this issue. v4.0.30319 of this DLL from MSAL.PS is now showing in the GAC.

My error was the same as that in #68

micmaher avatar Jun 29 '23 13:06 micmaher