Skip to content

Instantly share code, notes, and snippets.

@alaawahbah
Last active March 13, 2018 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaawahbah/d8d3686b3197e637536ac3b3313bcd28 to your computer and use it in GitHub Desktop.
Save alaawahbah/d8d3686b3197e637536ac3b3313bcd28 to your computer and use it in GitHub Desktop.
Fix: Visual Studio – “Cannot run when setup is in progress”
devenv /AllowDuringSetup
Please try below items to narrow down the issue:
Remove the tfs related credentials from Credential Manager
In Credential Manager add the new updated Generic Credentials for the TFS account. Generally this would overwrite the cached credentials.
Close all Visual Studio instances, delete %LOCALAPPDATA%\.IdentityService as you did.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache
Clear all the browser caches especially for the stored password
Restart Visual Stuido > Team Explorer > Manage Connections to check if the Enter credential dialog popup. Just try this several times. Based on my test the diaolog will popup first time, but if you cancel it, then you have to restart VS to popup it agagin.
Run Visual Studio as another user:
cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE
runas /netonly /user:<account> devenv.exe
Enter the user possword, then Team Explorer > Manage Connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment