I can't sign in visual studio!

水 知 125 Reputation points
2024-02-02T14:23:38.35+00:00

What happend? I can't sign in visual studio after I sign out! I restarted visual studio and even restarted my computer, but nothing changed at all! User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,032 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 53,496 Reputation points
    2024-02-02T15:25:50.0033333+00:00

    Off the top of my head it looks like there is something blocking Visual Studio from communicating with the remote resource. It could be intermittent or it could be a problem with your network. You're running the community edition so I'm assuming you are not working at a company where you can have someone else test their connection.

    Things that come to mind:

    • Ensure you are running the latest update of VS.
    • Temporarily disable the firewall and see if it works.
    • Create a new user profile in Windows and try to run Visual Studio with your existing MS account. If it works then the issue is with your profile otherwise it is machine level.
    • Run VS in safemode (/safemode) and see if the problem goes away. If it does then there might be an extension causing problems.
    • Run VS with logging (/log) and then check the generated activity log to see what it says.
    • Use VS's Report a Problem to report the issue to MS. That will collect the necessary information to send to them to look at.

1 additional answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,571 Reputation points Microsoft Vendor
    2024-02-05T02:42:23.28+00:00

    Hi @水 知, 

    Welcome to Microsoft Q&A! 

    Have you tried to sign in to VS with another account? 

    Please try the following steps:

    1. Close all running VS instances.
    2. Update VS2022 to the latest version with Visual Studio Installer.
    3. Delete your browser history, cache and cookies.
    4. Delete all files of %localappdata%\.Identityservice.
    5. Relaunch Visual Studio and sign in 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.


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.