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
When trying to use Connect-MgGraph, I receive error when using Powershell Extension (not outside it)
Connect-MgGraph: InteractiveBrowserCredential authentication failed: Could not load type 'Microsoft.Identity.Client.BaseAbstractApplicationBuilder`1' from assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'.
PowerShell Version
Name Value---- -----PSVersion 7.4.1PSEdition CoreGitCommitId 7.4.1OS Microsoft Windows 10.0.22621Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0Name : Visual Studio Code HostVersion : 2024.0.0InstanceId : 6339577e-1f14-44ec-b570-690541473743UI : System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture : en-USCurrentUICulture : en-USPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxyDebuggerEnabled : TrueIsRunspacePushed : FalseRunspace : System.Management.Automation.Runspaces.LocalRunspace
Open VS Code. Wait for Powershell Extension to load the terminal, Run Connect-MgGraph (before loading anything else).
If I uninstall the Extension, it loads fine. If I run pwsh outside of VSCode, it works fine. Only happens in VS Code when using the PowerShell Extension.
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered:
chrisclosacr
changed the title
Microsoft.Identity.Client issues with Microsoft.Graph and/or MicrosoftExchange Modules
Microsoft.Identity.Client issues with Microsoft.Graph
Jan 23, 2024
Prerequisites
Summary
When trying to use Connect-MgGraph, I receive error when using Powershell Extension (not outside it)
Connect-MgGraph: InteractiveBrowserCredential authentication failed: Could not load type 'Microsoft.Identity.Client.BaseAbstractApplicationBuilder`1' from assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Open VS Code. Wait for Powershell Extension to load the terminal, Run Connect-MgGraph (before loading anything else).
If I uninstall the Extension, it loads fine. If I run pwsh outside of VSCode, it works fine. Only happens in VS Code when using the PowerShell Extension.
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: