Replies: 8 comments 2 replies
-
I have the same issue with v3.8.0 (GA release). I'm required to load ExchangeOnlineManagement before loading MS Graph Authentication. This is becoming a real issue... I've noticed this with MSGraph, SQLServer, and now ExchangeOnlineManagement. Using:
|
Beta Was this translation helpful? Give feedback.
-
Connect-ExchangeOnline
OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder
Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder, Microsoft.Identity.Client.BrokerOptions)'.
[System.AppDomain]::CurrentDomain.GetAssemblies() | Where-Object { $_.FullName -like "*Microsoft.Identity.Client*" }
CodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.Extensions.Msal.dll
EntryPoint :
EscapedCodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.Extensions.Msal.dll
FullName : Microsoft.Identity.Client.Extensions.Msal, Version=4.65.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae
GlobalAssemblyCache : False
HostContext : 0
ImageFileMachine :
ImageRuntimeVersion : v4.0.30319
Location : D:\PowerShell\Modules\Az.Accounts\5.0.1\StartupScripts\..\lib\netstandard2.0\Microsoft.Identity.Client.Extensions.Msal.dll
ManifestModule : Microsoft.Identity.Client.Extensions.Msal.dll
MetadataToken :
PortableExecutableKind :
ReflectionOnly : False
CodeBase : file:///D:/PowerShell/Modules/ExchangeOnlineManagement/3.8.0/netCore/Microsoft.Identity.Client.dll
EntryPoint :
EscapedCodeBase : file:///D:/PowerShell/Modules/ExchangeOnlineManagement/3.8.0/netCore/Microsoft.Identity.Client.dll
FullName : Microsoft.Identity.Client, Version=4.66.1.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae
GlobalAssemblyCache : False
HostContext : 0
ImageFileMachine :
ImageRuntimeVersion : v4.0.30319
Location : D:\PowerShell\Modules\ExchangeOnlineManagement\3.7.2\netCore\Microsoft.Identity.Client.dll
ManifestModule : Microsoft.Identity.Client.dll
MetadataToken :
PortableExecutableKind :
ReflectionOnly : False
CodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll
EntryPoint :
EscapedCodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll
FullName : Microsoft.Identity.Client.Broker, Version=4.65.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae
GlobalAssemblyCache : False
HostContext : 0
ImageFileMachine :
ImageRuntimeVersion : v4.0.30319
Location : D:\PowerShell\Modules\Az.Accounts\5.0.1\StartupScripts\..\lib\netstandard2.0\Microsoft.Identity.Client.Broker.dll
ManifestModule : Microsoft.Identity.Client.Broker.dll
MetadataToken :
PortableExecutableKind :
ReflectionOnly : False
CodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.dll
EntryPoint :
EscapedCodeBase : file:///D:/PowerShell/Modules/Az.Accounts/5.0.1/StartupScripts/../lib/netstandard2.0/Microsoft.Identity.Client.dll
FullName : Microsoft.Identity.Client, Version=4.65.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae
GlobalAssemblyCache : False
HostContext : 0
ImageFileMachine :
ImageRuntimeVersion : v4.0.30319
Location : D:\PowerShell\Modules\Az.Accounts\5.0.1\StartupScripts\..\lib\netstandard2.0\Microsoft.Identity.Client.dll
ManifestModule : Microsoft.Identity.Client.dll
MetadataToken :
PortableExecutableKind :
ReflectionOnly : False |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue with the GA release using PowerShell 7.5.1. I rolled back to a few versions previous and it is working fine. |
Beta Was this translation helpful? Give feedback.
-
I am getting the same issue with The workaround that works for me is: $dummyCred = [pscredential]::new('dummy', (New-Object System.Security.SecureString))
Import-Module -Name ExchangeOnlineManagement
try
{
Connect-ExchangeOnline -UserPrincipalName dummy@contoso.com -Credential $dummyCred | Out-Null
}
catch
{
# Exception is expected
} Important
There seems to be an interference with some other modules, in my case very likely with I will create an issue for that. |
Beta Was this translation helpful? Give feedback.
-
The Exchange Online Management module V3.8 is definitely unstable. The fix for me was also to downgrade to V3.7. Will be interested if the issue that raandree raised gets a response out of Microsoft. |
Beta Was this translation helpful? Give feedback.
-
@jsheehan14, right, all versions above 3.7.0 caused some issues. @SamErde, the fake credentials don't connect you to Exchange Online of course, but doing that makes PowerShell load the right DLLs and Types so things work. However, as expected, after that there are issues with the |
Beta Was this translation helpful? Give feedback.
-
I have found that the dependency conflict can usually be avoided if modules get imported in this order:
Currently working on a script to dynamically determine the order in which to import these, based on the version of |
Beta Was this translation helpful? Give feedback.
-
We are also experiencing this issue when loading the Graph PowerShell SDK modules in our scripts prior to the ExchangeOnlineManagement module using the #Requires statement (can be repo’d interactively using Import-Module cmdlet). There was a similar issue last year (see: #2803) and until Microsoft fixed it in ExchangeOnlineManagement module version 3.6.0, the workaround was to load the Graph modules before ExchangeOnlineManagement. Now the workaround for this new issue has been to load ExchangeOnlineManagement before the Graph modules. It’s ridiculous that Microsoft keeps introducing these bugs. Where is the regression and compatibility testing for these modules. Example: Windows 11
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just updated to ExchangeOnlineManagement 3.8.0-Preview1 and Graph SDK 2.26.1 and now find that if I connect to Exchange first, then Graph SDK it works fine, but if I reverse that and connect to Graph first then on my connection attempt to Exchange I get an .NET related error:
Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder
Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder, Microsoft.Identity.Client.BrokerOptions)'.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.8.0\netFramework\ExchangeOnlineManagementBeta.psm1:764 char:21
(Microsoft.Identity.Client.PublicClientApplicationBuilder, Microsoft.Identity.Client.BrokerOptions)'.
Beta Was this translation helpful? Give feedback.
All reactions