Search code examples
visual-studioazurevisual-studio-2015windows-store-apps

AADSTS50059 error in Visual Studio


For some time, I get an error when I try to log into my Microsoft account from Visual Studio for my Azure subscription. My Microsoft account is associated to : Outlook.com (obviously), Office 365, Azure and a Windows Developer.

I ignored this message until now, because I could connect to my database, my websites functioning, etc. But now I need to publish an application in the Windows Store. When I try to generate my Windows app packages, I found the same error:

Message error

We could not refresh the credentials for the account AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.

Trace ID: eaf34263-377e-41d3-8f72-177827315914

Correlation ID: 15bbcfe8-8bc9-4a83-aa02-288a54e50dd5

Timestamp: 2016-09-19 11:27:20Z

I have already try to clean up cookies, temporary files, another Windows developer account, ...


UPDATES

I have try to download Azure AD Application Proxy Connector. Setup failed


Solution

  • I had this same problem again on Visual Studio 2017 (15.1).

    Solution found:

    You have to go to REGEDIT.

    Navigate to "Computer\HKEY_CURRENT_USER\Software\Microsoft\VSCommon\ConnectedUser"

    And empty all the values, except EnableAzureRMIdentity (change to true if isn't) :

    enter image description here

    To :

    enter image description here