TF30063: You are not authorized to access…

--

I have a few TFS online accounts. I don’t log in to all of them with the same Microsoft Account (of course). Sometimes I run into issues where I open one project in Visual Studio 2012, login with account A, then when I try to open another project that requires login with account B I get this error:

TF30063: You are not authorized to access…

Rebooting helped. Once.
On another occasion I wasn’t so lucky (remember me cookies, probably).

So, I searched around and found this stackoverflow link with the answer I needed. I’ll repeat it here so you know which tip fixed it ;)

I opened a browser from within Visual Studio 2012 from View->Other Windows->Web Browser.

Navigated to the TFS online account that I thought might be the one I was incorrectly logged in to:

http://accountname.visualstudio.com

Sure enough I was still signed in. So, I signed out.
Closed the browser window in VS, went back to the Team Explorer window and tried to connect to the collection I wanted to get to in the first place.

Bam, it worked! Yeah! So happy.

I don’t know if this issue persists in VS 2013, haven’t compared that scenario.

Originally published January 6, 2014.

--

--

Cofounder / CIO Solliance; Cloud / Security Architect; Microsoft Regional Director and Azure MVP; author Learning WCF, Developing Microsoft Azure Solutions