web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Problem with visual studio 2022 sign in

(1) ShareShare
ReportReport
Posted on by 26
Hi,
I selected to sign out of the account in visual studio 2022 installed on our VM dev machine and I am having problems signing back in. 
It takes me through all our corporate authentication / MFA successfully but I get a popup saying
We could not add the account An error occurred sending the request.

I have had no problem up to now. F&O 10.0.1935.29
I thought initially it was a problem with VS licensing but that appears ok. I have a Professional subscription valid to 2027. 

Many suggestions on line are quite old but I have tried clearing component cache. If I enable VS with debug it puts in this entry:
  <entry>
    <record>344</record>
    <time>2024/09/16 14:26:13.393</time>
    <type>Error</type>
    <source>Accounts View Model</source>
    <description>Error processing accounts: &#x000D;&#x000A;System.Exception: An error occurred while sending the request.&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.Packages.UserInformation.DataModel.AccountsViewModel.&lt;AddAccountAsync&gt;d__73.MoveNext()</description>
  </entry>

I can connect to My Subscriptions - Visual Studio Subscriptions Portal from a browser on the same VM using the same account. 

I'm not seeing anything blocked on our firewall.

Any help/suggestions very gratefully received. Should I considering re-installing VS?

Many thanks
I have the same question (0)
  • Komi Siabi Profile Picture
    13,049 Most Valuable Professional on at
    Problem with visual studio 2022 sign in
    Hello, 
     
    What version of the application did you deploy? Is it a VHD or a Cloud hosted environment? 

    Did you try login with another account into the Visual studio ? If yes, what's the result?
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,348 Super User 2025 Season 2 on at
    Problem with visual studio 2022 sign in
    Hi,
     
    try to reset a user data by calling this command:
    devenv.exe /ResetUserData
    Best Regards,
    Mohamed Amine MAHMOUDI
     
  • flangepiece Profile Picture
    26 on at
    Problem with visual studio 2022 sign in
    Thanks Mohamed, I tried that command from a command prompt as adminstrator but unfortunately when rerunning VS I get the same error popup as before.
    I have also tried:
    devenv.exe /clearcache
    devenv /updateconfiguration 

    as suggested elsewhere

    Hi Komi, it is VHD on a VM hosted in our Azure. We updated the Evergreen version a few months back and it was working fine after that. It just seems to be problem since I signed out. I tried a different account and I get the same error. I'm getting a colleague to check tracing of the connection.
    I tried selecting Help->Send feedback->Report a problem from VS as suggested elsewhere and am getting WebSocket connection timed out after 10 seconds.
  • Verified answer
    flangepiece Profile Picture
    26 on at
    Problem with visual studio 2022 sign in
    We've resolved after tracing the connection and have added *.azure.com to allowed sites.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,882

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 794 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 525 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans