Error TF30063: You are not authorized to access … \DefaultCollection

前端 未结 30 999
逝去的感伤
逝去的感伤 2020-11-29 15:41

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

相关标签:
30条回答
  • 2020-11-29 16:14

    Make sure your password hasn't coincidentally expired exactly on the same day you decided to install a new dev machine.

    If you can't even log into TFS using the web interface then this may be the case.

    0 讨论(0)
  • 2020-11-29 16:16

    I went through a number of these solutions too, here what worked for me:

    For some reason Team explorer thought I was trying to upload to a new project.

    Under Team Explorer -> Sync

    I clicked "Advanced" which then showed a Project dropdown as well, which I didn't have to change in my case, I just clicked Publish Repository, and voila.

    0 讨论(0)
  • 2020-11-29 16:17

    When Visual Studio prompted me for Visual Studio Team Services credentials there are two options:

    1. Use a "Work or School"
    2. Use a "Personal" account

    In my situation I was using a work email address, however, I had to select "Personal" in order to get connected. Selecting "Work or School" gave me the "tf30063 you are not authorized to access..." error.

    For some reason my email address appears to be registered as "personal" even though everything is setup in Office 365 / Azure as a company. I believe the Microsoft account was created prior to our Silver Partnership status with Microsoft.

    0 讨论(0)
  • 2020-11-29 16:17

    What isn't officially an answer here, but worked for me (the other answers didn't help): Click Team Explorer tab -> Connect hyperlink - connect\choose repository. And it works.

    0 讨论(0)
  • 2020-11-29 16:22

    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.

    0 讨论(0)
  • 2020-11-29 16:23

    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.

    0 讨论(0)
提交回复
热议问题