Cannot log in to Visual Studio IDE
I really need to start working on my c# project again, but Visual Studio 2017 will not let me log in any account of mine.
I open visual studio and it looks like
this.
Then displays this error after entering my information and All Accounts area updates to look like
this.
If I reenter my credentials it goes through but nothing happens, no errors.
I've tried multiple different accounts and work groups to no avail. I can log in to these accounts on https://visualstudio.microsoft.com/ perfectly fine. I've looked around for other related issues and while there is a ton of posts about similar problems, I can't find a solution to mine. I tried uninstalling/reinstalling everything twice and I'm still getting the same error.
Edit:
Still investigating...
Here's the last entry in the %temp%/servicehub/logs/ directory:
01/21/2019 13:13:44 : Error : No session token entry found.
01/21/2019 13:13:45 : Error : Problem getting session token from the server. 'Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenSilentHandler.SendTokenRequestAsync()
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<AcquireTokenSilentAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<GetSessionTokenFromVsoAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.SessionTokens.SessionTokenManager.<GetSessionTokenImplAsync>d__6.MoveNext()
ErrorCode: failed_to_acquire_token_silently'
Edit 2: I found these steps from this post. This allows me to access visual studio and build/run code:
Close all running VS and delete the contents of %localappdata%.IdentityService
Clean up all folders and files under the folder: %LocalAppData%MicrosoftVisualStudio15.0_xxx and restart the VS 2017 to check it again.
Click Start and scroll down to the Visual Studio 2017 folder, expand it, run the ‘Developer Command Prompt for VS 2017 as administrator and run the command: devenv /resetuserdata to test.
Run VS as administrator and login with another Microsoft account
However it only works if running as administrator, so I still have a problem as my admin account is a different user entirely.
visual-studio c# msdn
add a comment |
I really need to start working on my c# project again, but Visual Studio 2017 will not let me log in any account of mine.
I open visual studio and it looks like
this.
Then displays this error after entering my information and All Accounts area updates to look like
this.
If I reenter my credentials it goes through but nothing happens, no errors.
I've tried multiple different accounts and work groups to no avail. I can log in to these accounts on https://visualstudio.microsoft.com/ perfectly fine. I've looked around for other related issues and while there is a ton of posts about similar problems, I can't find a solution to mine. I tried uninstalling/reinstalling everything twice and I'm still getting the same error.
Edit:
Still investigating...
Here's the last entry in the %temp%/servicehub/logs/ directory:
01/21/2019 13:13:44 : Error : No session token entry found.
01/21/2019 13:13:45 : Error : Problem getting session token from the server. 'Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenSilentHandler.SendTokenRequestAsync()
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<AcquireTokenSilentAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<GetSessionTokenFromVsoAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.SessionTokens.SessionTokenManager.<GetSessionTokenImplAsync>d__6.MoveNext()
ErrorCode: failed_to_acquire_token_silently'
Edit 2: I found these steps from this post. This allows me to access visual studio and build/run code:
Close all running VS and delete the contents of %localappdata%.IdentityService
Clean up all folders and files under the folder: %LocalAppData%MicrosoftVisualStudio15.0_xxx and restart the VS 2017 to check it again.
Click Start and scroll down to the Visual Studio 2017 folder, expand it, run the ‘Developer Command Prompt for VS 2017 as administrator and run the command: devenv /resetuserdata to test.
Run VS as administrator and login with another Microsoft account
However it only works if running as administrator, so I still have a problem as my admin account is a different user entirely.
visual-studio c# msdn
add a comment |
I really need to start working on my c# project again, but Visual Studio 2017 will not let me log in any account of mine.
I open visual studio and it looks like
this.
Then displays this error after entering my information and All Accounts area updates to look like
this.
If I reenter my credentials it goes through but nothing happens, no errors.
I've tried multiple different accounts and work groups to no avail. I can log in to these accounts on https://visualstudio.microsoft.com/ perfectly fine. I've looked around for other related issues and while there is a ton of posts about similar problems, I can't find a solution to mine. I tried uninstalling/reinstalling everything twice and I'm still getting the same error.
Edit:
Still investigating...
Here's the last entry in the %temp%/servicehub/logs/ directory:
01/21/2019 13:13:44 : Error : No session token entry found.
01/21/2019 13:13:45 : Error : Problem getting session token from the server. 'Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenSilentHandler.SendTokenRequestAsync()
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<AcquireTokenSilentAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<GetSessionTokenFromVsoAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.SessionTokens.SessionTokenManager.<GetSessionTokenImplAsync>d__6.MoveNext()
ErrorCode: failed_to_acquire_token_silently'
Edit 2: I found these steps from this post. This allows me to access visual studio and build/run code:
Close all running VS and delete the contents of %localappdata%.IdentityService
Clean up all folders and files under the folder: %LocalAppData%MicrosoftVisualStudio15.0_xxx and restart the VS 2017 to check it again.
Click Start and scroll down to the Visual Studio 2017 folder, expand it, run the ‘Developer Command Prompt for VS 2017 as administrator and run the command: devenv /resetuserdata to test.
Run VS as administrator and login with another Microsoft account
However it only works if running as administrator, so I still have a problem as my admin account is a different user entirely.
visual-studio c# msdn
I really need to start working on my c# project again, but Visual Studio 2017 will not let me log in any account of mine.
I open visual studio and it looks like
this.
Then displays this error after entering my information and All Accounts area updates to look like
this.
If I reenter my credentials it goes through but nothing happens, no errors.
I've tried multiple different accounts and work groups to no avail. I can log in to these accounts on https://visualstudio.microsoft.com/ perfectly fine. I've looked around for other related issues and while there is a ton of posts about similar problems, I can't find a solution to mine. I tried uninstalling/reinstalling everything twice and I'm still getting the same error.
Edit:
Still investigating...
Here's the last entry in the %temp%/servicehub/logs/ directory:
01/21/2019 13:13:44 : Error : No session token entry found.
01/21/2019 13:13:45 : Error : Problem getting session token from the server. 'Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenSilentHandler.SendTokenRequestAsync()
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityService.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<AcquireTokenSilentAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.AccountProvider.NetworkServicesImpl.<GetSessionTokenFromVsoAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Developer.IdentityService.SessionTokens.SessionTokenManager.<GetSessionTokenImplAsync>d__6.MoveNext()
ErrorCode: failed_to_acquire_token_silently'
Edit 2: I found these steps from this post. This allows me to access visual studio and build/run code:
Close all running VS and delete the contents of %localappdata%.IdentityService
Clean up all folders and files under the folder: %LocalAppData%MicrosoftVisualStudio15.0_xxx and restart the VS 2017 to check it again.
Click Start and scroll down to the Visual Studio 2017 folder, expand it, run the ‘Developer Command Prompt for VS 2017 as administrator and run the command: devenv /resetuserdata to test.
Run VS as administrator and login with another Microsoft account
However it only works if running as administrator, so I still have a problem as my admin account is a different user entirely.
visual-studio c# msdn
visual-studio c# msdn
edited Jan 21 at 18:39
Ausche
asked Jan 21 at 16:20
AuscheAusche
12
12
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396680%2fcannot-log-in-to-visual-studio-ide%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396680%2fcannot-log-in-to-visual-studio-ide%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown