How to resolve: Re-enter your credentials: error no matching accounts found in MSAL cache

E B 0 Reputation points
2025-04-06T10:53:31.74+00:00

I'm trying to sign in to Visual Studio 2022 Community edition using my Microsoft account. However, this error message pops up immediately after I sign in from my browser:

Re-enter your credentials Visual Studio encountered problems while attempting to access some directories. Error: no matching accounts found in any MSAL cache

This error only shows up when I’m trying to sign in to Visual Studio in admin mode. I could successfully sign in using the same Microsoft account when Visual Studio is not running in admin mode.

What I've tried:

  1. Delete all files in C:\Users\{username}\AppData\Local\.IdentityService
  2. Using system browser in Tools > Options > Environment > Accounts
  3. Remove and re-add my account

Would appreciate any help on how to resolve this. Thanks!

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,148 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.