Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Identity.Client issues with Microsoft.Graph #4897

Closed
5 of 6 tasks
chrisclosacr opened this issue Jan 23, 2024 · 0 comments
Closed
5 of 6 tasks

Microsoft.Identity.Client issues with Microsoft.Graph #4897

chrisclosacr opened this issue Jan 23, 2024 · 0 comments
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!

Comments

@chrisclosacr
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

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

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name             : Visual Studio Code Host
Version          : 2024.0.0
InstanceId       : 6339577e-1f14-44ec-b570-690541473743
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Visual Studio Code Version

code --version
1.85.2
8b3775030ed1a69b13e4f4c628c612102e30a681
x64

Extension Version

code --list-extensions --show-versions | Select-String powershell

[email protected]
[email protected]

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

image

Logs

No response

@chrisclosacr chrisclosacr added Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed! labels Jan 23, 2024
@chrisclosacr 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
@chrisclosacr chrisclosacr closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!
Projects
None yet
Development

No branches or pull requests

1 participant