Replies: 4 comments 1 reply
-
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.
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