Visual Studio is unable to sign in my user into IDE.

Filmon Belay 0 Reputation points Microsoft Employee
2024-08-06T22:53:00.72+00:00

I'm unable to sign into visual studio using my @mircosoft account. I've reinstalled visual studio and tried logging in w both Azure VPN and MSFT VPN.

Any reason this would start failing today. How can I fix this so I can log into visual studio? Below is a screenshot of one error message. Other times I can look at error logs files and I see error reported by MSAL.NetCore.4.58.1.10.MsalClientException.User's image

ErrorCode: authentication_ui_failed
```See above error message when trying to login to Visual Studio 2022 v17.10

I've re-installed visual studio and tried logging in from both Azure and MSFT VPNs. Also tried restarting computer and wifi connecition.
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,131 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,552 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,006 Reputation points Microsoft Vendor
    2024-08-07T03:38:29.7466667+00:00

    Hi @Filmon Belay, 

    Welcome to Microsoft Q&A! 

    Please close all running Visual Studio instances and manually delete the following account caches folders:

    %localappdata%\.Identityservice

    %localappdata%\Microsoft\Team Foundation\x.0\Cache  

    Then, re-launch the Visual Studio 2022 and sign into your account.  

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Filmon Belay 0 Reputation points Microsoft Employee
    2024-08-07T11:02:15.09+00:00

    Hi Anna thaks for your respnose,

    I've deleted **%localappdata%\.Identityservice**

    But don't have **%localappdata%\Microsoft\Team Foundation\x.0\Cache** on my machine.

    After removing .Identityservice I'm still unable to run Visual Studio.

    0 comments No comments

  3. Filmon Belay 0 Reputation points Microsoft Employee
    2024-08-07T11:03:55.0933333+00:00

    How can I get authorization to access msazure.visualstudio.com ?


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.