Error TF30063: You are not authorized to access …

2019-01-10 00:11发布

I'm using TFS Preview (Team Foundation Service) with one of my projects with Visual Studio 2012. I'm also using an on-premises TFS server with most of my projects. When I use my on-premises TFS after using TFS preview and go back to using TFS preview, I get this error:

TF30063: You are not authorized to access MyProject\DefaultCollection.

If I go to TeamDisconnect TFS and then connect to TFS preview again, I'm able to see a "Loading identifiers" loading screen coming up, but in the end I don't get to enter my credentials to TFS preview (my Microsoft account) and as a result, the TF30063 error still occurs.

I suspect this has something to do with my Microsoft account (i.e. Live ID). I'm logged in to Windows with the same Microsoft account that I use at TFS preview. I have logged in to other sites (Windows Development Center, MSDN, etc.) with other Microsoft accounts, but I verified that if I log out of these services and re-login with the correct Microsoft account, I still get the TF30063 error when I try to log in to TFS preview from Visual Studio.

27条回答
Deceive 欺骗
2楼-- · 2019-01-10 00:56

None of the current answers worked for me. I found a solution here.

The issue was that my previous credentials were cached by the Windows OS for the TFS server. While some people might have had success wiping out the AppData temp folders, that is not required.

You need to update the credentials through Control Panel on the Windows OS.

For me on Windows 10: Close VS. Go to Control Panel (with small icon view)-->User Accounts-->Manage your credentials (on the left column)-->Select "Windows Credentials"-->Scroll down to the "Generic Credentials" section and look for your TFS server connection. Expand the pull down and click "Edit". Enter in new network password. Reopen VS and everything should work again.

查看更多
Juvenile、少年°
3楼-- · 2019-01-10 00:56

Just enter a new Credential

  1. press Win button, then type credential manager and open it .
  2. Add generic credentials.
  3. Go back to team explorer, add the server again.
查看更多
聊天终结者
4楼-- · 2019-01-10 00:57

I have just removed the server from Team Explorer, then added again, and it worked =).

查看更多
疯言疯语
5楼-- · 2019-01-10 00:57

I got this error, after all fiddling work i could do .. found disk space full! clearing it fixed my issue. -pasha

查看更多
兄弟一词,经得起流年.
6楼-- · 2019-01-10 00:59

Just restarting the visual Studio would do the job. As I did this and it worked like a charm

查看更多
贪生不怕死
7楼-- · 2019-01-10 01:00

I tried the following to resolve this issue. Hopefully one of these will work for you

A - Close VS then start the VS Developer Command prompt as an administrator. Then enter: devenv /resetuserdata

B - Clear the cache in IE (apparently VS uses this to access your account mentioned here)

C - Click View -> Other Window -> Web browser (CTRL+ALT+r) sign in to your old account, log out and sign in to your new one

D - Open the folder containing you solution, delete (backup if you want) the Visual Studio Source Control Solution Metadata File delete the .suo file and open the .sln file in Notepad and delete the below section

GlobalSection(TeamFoundationVersionControl) = preSolution
    SccNumberOfProjects = 6
    SccEnterpriseProvider = {**********************}
    SccTeamFoundationServer = theServer
    SccLocalPath0 = .
    SccProjectUniqueName1 = pro
    SccProjectName1 = myProject.BL
    SccLocalPath1 = myProject.BL
    .....more stuff.....
EndGlobalSection

The last step was required because, while I had managed to disconnect VS my solution was still trying to connect to the old source control account.

查看更多
登录 后发表回答