Share via

I cant login with my Microsoft account in Visual Studio

Dr Bo Jiang 0 Reputation points
2026-03-05T02:39:53.0266667+00:00

I cant login with my microsoft account in visual studio. It kept me waiting for 10mins at least. Also, I checked my microsoft account, my device has not been registed in that page, yet I have login my laptop with microsoft and has registed. Whats the problem?

Outlook | Web | Outlook.com | Account management, security, and privacy
0 comments No comments

1 answer

Sort by: Most helpful
  1. Diana Mariz 7,275 Reputation points Independent Advisor
    2026-03-05T04:33:25.5133333+00:00

    Hi,

    If Visual Studio keeps spinning for a long time when trying to sign in with your Microsoft account, it is usually related to the authentication cache or account token used by Visual Studio, not the device registration itself.

    The device not appearing in your Microsoft account devices list is normal in many cases. Visual Studio sign-in does not always register the PC as a device there, so that part is typically unrelated to the login issue.

    What often helps is clearing the cached credentials that Visual Studio uses. Close Visual Studio, then open Credential Manager in Windows and remove any entries related to Visual Studio, Microsoft Office, or MicrosoftAccount. After that, reopen Visual Studio and try signing in again. This forces the application to request a fresh authentication token.

    If the problem continues, also make sure Visual Studio is fully updated and that your network is not blocking Microsoft authentication endpoints, since a slow or blocked connection can cause the login window to appear stuck for several minutes.

    0 comments No comments

Your answer

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