Article ID: 2958966 - View products that this article applies to.
When you use Visual Studio Online
(http://www.visualstudio.com)accounts that are linked to directory tenants, such as accounts that are created from the Microsoft Azure Preview Portal, the sign-out function may not work as expected. For example, you can't switch between different organizational accounts to connect to multiple accounts that are linked to directory tenants.
When this problem occurs, you see a flashing blank sign in dialog box several times. Then, you receive the following error message after you connect to or add a new connection in "Connect to Team Foundation Server" dialog box:
TF31003: Either you have not entered the necessary credentials or your user account does not have permission to connect to the Team Foundation Server
TF31002: Unable to connect to this Team foundation Server
To resolve this problem, apply Visual Studio 2013 Update 2 or a later version of the update. To do this, go to the Visual Studio download
To work around this problem, delete your browser cookies. To do this, use one of the following methods.
Note This workaround will sign you out of all Visual Studio Online accounts and it will delete cookies that customize your browser experience. This might affect your web-browsing experience.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Team Explorer in Visual Studio includes a feature that remembers last-used credentials. Therefore, you don't have to re-enter these credentials when you add new Visual Studio Online connections through the Connect to Team Foundation Server dialog box in Visual Studio.
When you use multiple Microsoft account credentials that connect to the same or multiple Visual Studio Online accounts, you can use the sign-out function in the Connect to Team Foundation Server dialog box to make Visual Studio forget the currently signed-in user. This lets you connect to a Visual Studio Online account that uses a different Microsoft account.
Article ID: 2958966 - Last Review: September 22, 2014 - Revision: 2.0
Contact us for more help