222

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.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
fincooper
  • 2,647
  • 2
  • 13
  • 11
  • maybe this will help? http://stackoverflow.com/questions/6672516/tf30063-you-are-not-authorized-to-access-collection-nuget-and-tfs-conflicting – Valamas Oct 02 '12 at 05:55
  • 2
    Sadly, no. This also happens with a fresh install and seems to have more to do with multiple Microsoft Accounts than TFS-related authentication. The TFS Preview login apparently uses Internet Explorer and thus might conflict with other MS Accounts you are using. I came accross this [link](http://social.msdn.microsoft.com/Forums/en-US/TFService/thread/adbb8bcf-16cc-4476-8154-3b5358543d02) and fully clearing the IE cache seems to work for me. – fincooper Oct 02 '12 at 06:01
  • 1
    Clearing the IE cache didnt help me but actually Logging in with the internet explorer as the TFS user into tfs servers web and then signing out worked...tried the answers but none worked for me until i tried this. also cleared `IdentityService` folder from `LocalAppData` but it didnt help untill i relogged using IE itself... – Niklas Dec 21 '17 at 00:24
  • I ran into this problem, too. However it was because my password had expired and I didn't know it until I restarted the computer. – Brandon Mar 27 '18 at 14:36
  • this works:http://www.niranjankala.in/post/How-to-fix-error-TFS-connection-error-You-are-not-authorized-to-access-%E2%80%A6 – amit jha May 09 '19 at 06:09
  • Try this link https://www.c-sharpcorner.com/article/how-to-fix-tf30063-error-you-are-not-authorized-to-access-team-foundation-serv/. Somebody said Step 4 worked for him and i tried that. It worked like a charm. There are other methods in this link to fix this issue. – Sabbir Hassan Jul 22 '19 at 13:52

34 Answers34

266

When I came accross this issue none of the provided answers solved this problem or if it did I didn't like recreating the project. The way I ended up solving the issue:

enter image description here

  1. Clicking on the "Connect to Team Projects button" (The plug next to the home button in the Team Explorer tab)
  2. Right click the project you are getting this issue on.
  3. Click Connect.

I guess the "Remember me" cookie timed out but gave me a generic response for trying to push or pull any code.

Rizowski
  • 3,378
  • 3
  • 20
  • 30
  • 4
    Yeah, the pathway to acceptance on this option appears hazardous with the various warnings especially when you have modified code waiting to checkin. But it seems like it has been designed to deal with the TF30063 situation. None of the other suggestions worked for me. – Bob Clegg Jun 07 '13 at 01:22
  • This just happened to me in an office where *everything* was turned off and unplugged overnight due to 100+ mph gales. I'm assuming that once the TFS server restarted it needed anyone to re-authenticate... – Fetchez la vache Feb 13 '14 at 09:39
  • 1
    This was it. I figured it out. Didn't read down far enough to find your answer, so I figured it out myself. But this is really the correct answer – stephenbayer Jun 30 '15 at 17:23
  • Thank you for this solution! I was starting to pull my hair out over this! – Quiver Mar 21 '16 at 21:10
  • Thank you, this solution worked perfectly. Tried the top suggestion, but didn't work for me, this one did. – Tscott Sep 07 '16 at 19:39
  • 1
    I had to change my Windows password before this solution would work. The password wasn't expired, but was expiring soon. – Alex Jorgenson Sep 26 '16 at 14:43
  • The other reason could be possibly in my case - because of corporate password change policy VS might have been caching my older password which I must have changed several times in last few quarters whenever I get that reset password prompt from windows. For all check-in and checkouts I was using gitBash console which has its own cache of credentials. This prompt was really frustrating and causing unnecessary delay in loading my solutions. Thank you for your post! – RBT Nov 18 '16 at 07:05
  • 1
    Unbelievable that MS does not make this easier – coder_tim Jun 14 '17 at 17:29
  • FYI: as of September 2017, the steps described by Rizowski are still necessary, even when using the latest, and supposedly greatest, Visual Studio 2017 Enterprise (15.3.3) on Windows 10 64-bit (Version 1703, OS Biuld 15063.540). What's old is new, I suppose. – user3785010 Sep 03 '17 at 18:51
  • This has worked in the past for me but didn't work today (why does this keep happening??). Tried @S.Hoseinpoor's solution below (which in my mind should do the same thing) but that worked. – pcdev May 25 '18 at 05:42
  • This is THE solution! – Alfred Wallace Mar 30 '19 at 03:19
190

I solved this issue by using the browser from within Visual Studio, View->Other Windows->Web Browser; Ctrl+Alt+R (or * Ctrl+W, W* in VS versions before VS2010) to navigate to the TFS page and log out of the wrong account and log back in.

For me, the issue was caused by using another live-id to unlock a windows phone for development. Somehow the credentials got cached, it seems.

Thom
  • 121
  • 3
  • 10
Markus Bruckner
  • 2,784
  • 2
  • 21
  • 28
  • 1
    This is the best and fastest way. – Idrees Apr 24 '13 at 03:39
  • Awesome - I am using Windows 8 and signing into Windows with my LiveId. This trick allowed me to "trick" Visual Studio into using a different LiveId. Very nice. – ProVega Aug 21 '13 at 03:41
  • How, oh how, did you discover this? – Holf Dec 19 '13 at 13:12
  • 2
    @Holf It's a long time ago, but I think I've read about browser issues and remebered that there's a builtin browser :) – Markus Bruckner Jan 02 '14 at 11:08
  • After I try your method, it goes to live.com ( I can see that in URL only ) and the page remains blank. Sometimes it tells "loading identity provider" . Still whole web page is blank. I have tried clearing Internet option->delete . I selected all boxes to clear it. However that was my desktop IE browser. Can we find these options in the inside browser as well? Don't the two browsers have same cache? – qqqqq Oct 15 '14 at 22:44
  • @qqqqq I don't think the have the same cache, otherwise the issue wouldn't even exist. – Markus Bruckner Oct 16 '14 at 11:37
  • how to navigate TFS page please help I cound not follow up your explanation – clarifier Mar 19 '15 at 10:21
  • @clarifier Where did you get stuck? – Markus Bruckner Mar 19 '15 at 11:20
  • I Followed The Process as Suggested Above View->Other Windows->Web Browser; but got stuck after that I could not find How to navigate to TFS from That point Thanks in Advance – clarifier Mar 19 '15 at 12:51
  • @clarifier In the tab that opens, navigate to the respective TFS (either visualstudio online or your local TFS installation). Enter the URL below the tab header. – Markus Bruckner Mar 25 '15 at 15:39
  • Anyways all Those were Fine I Have Found The solution and Now it is working fine – clarifier Mar 30 '15 at 12:08
  • 6
    that didn't work for me. I brought up the "Team Explorer" tab, clicked on the "Select Team Project" and it let me enter my new password. – stephenbayer Jun 30 '15 at 17:22
  • I used the browser in VS and logged in to TFS Online. I then opened the project I was having problems in and everything worked ok. – Frank Cannon Jan 12 '16 at 09:55
  • 1
    When I open the VS Web Browser and navigate to the TFS site, I get and error 401. I've tried clearing authentication, adding new authentication manually. Clearing IE cookies. Nothing works. The VS Web Browser still says error 401. I can even login to the same url in IE and it works fine. – stricq Sep 04 '16 at 16:56
  • Clicking [Sign out and connect with another login] didn't work for me. Further down on the page, I clicked the "You can get a list of your accounts *here*" and this allowed me to switch to the correct account – Guy Passy Jan 29 '17 at 08:30
  • 2
    For me the issue wasn't that I had wrong credentials, it was that I was pointing to the wrong base URL of the project. (How it did this I have no clue). What fixed it for me was, `Team Explorer > Manage Connections (Little Plug next to Home button) > Right Clicked on Project > Connect.` Then it allowed me to reenter in my credentials. Then worked! **EDIT:** Just realized that is @Rizowski 's answer in the answers. – akasoggybunz Aug 04 '17 at 21:40
  • I get the following message: 'Navigation to the webpage was cancelled' – Arthur Mamou-Mani Oct 22 '17 at 11:29
  • I had to log in using the same username but a personal account. Make sure to try both the work/professional account and the personal account. – haleonj Feb 27 '18 at 21:24
  • 7 Years later and it's still and issue (when using multiple Live-IDs on the same PC) and this worked for me once I'd restartedVS 2017. Thanks – Dirk Wessels May 12 '19 at 21:51
  • This did not fix it for me :( – A X Sep 28 '20 at 02:46
  • When I click on the 'View->Other Windows->Web Browser' it says that TeamCity has dropped support for Internet Explorer. I have also spent time searching, but cannot see how to change the default browser for Visual Studio 2019. – user8128167 Feb 05 '21 at 20:23
  • Found the issue was resolved when I changed VS `Options->Environment->Web Browser` to `External Editor` and picked edge using `C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe` See https://stackoverflow.com/questions/42243177/change-default-web-browser-in-visual-studio – user8128167 Feb 05 '21 at 20:56
64

For me the error came after changing my password for my AD account.

I had to remove the line from credential manager (which contained the previous password.)

Then it worked again.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Demian Kasier
  • 2,337
  • 6
  • 26
  • 39
  • Ridiculous. Yup, that fixed it for me aswell. I had the same issue - I had to change my AD password yesterday, and then, TFS refused to connect. Even worse, I couldn't even quit VS2013, as it blocked me, due to TFS wanting to connect first... but it wasn't able to. Changing my password in Credential Manager solved it for me aswell. Many thanks ! – Mike Gledhill Feb 04 '16 at 08:44
  • 4
    This was the only thing that worked for me. The other answers did nothing. – JesseNewman19 Sep 08 '17 at 17:49
  • 1
    This fixed me up, on Windows 10. – Neo Nov 29 '17 at 15:05
  • This is the only thing that has worked for me! Not sure why VS isn't prompting for authorization when it gets an access denied error. – Justin Adkins Dec 14 '17 at 15:15
  • Only thing that worked for me also, after updating my network password. – Eelco Jan 02 '18 at 20:41
  • Works perfectly for me! I had this problem after changing AD password. – Ross Brigoli Mar 09 '18 at 06:33
  • This worked for me too, but I had to open TFS in IE (v9 or later) and then log in there. Only once I logged into TFS via IE did visual studio stop throwing its toys around. (WIn10 64bit, VS2017 (v15.5.3), IE v11.523) – Swifty Jan 23 '19 at 08:27
  • Seems to work first then I got could not read Password for 'https://xxx@dev.azure.com': terminal prompts disabled – Bastien Vandamme Jul 15 '19 at 09:02
  • This answer fixed my issue for Windows 10 1909 (18363.1440), Visual Studio 2019 (16.4.5) and Azure DevOps Server 2019 (17.143.28621.4) – joym8 Mar 11 '21 at 15:20
  • This fixed it for me! All other items above did not. – ttaylor27272727 May 28 '21 at 21:05
35

I have upgraded TFS 2015 to TFS 2017, and then the TF30063 error occured on one of my client machines. None of the solutions here worked...

For me the only solution that worked was running the following command from the Developer Command Prompt:

tf workspaces /collection:https://tfs.xxxxx.com/tfs/DefaultCollection

Of course, you need to adjust the url to the valid one.

Source: https://www.visualstudio.com/en-us/docs/setup-admin/tfs/admin/backup/refresh-data-caches

David Rogers
  • 2,284
  • 2
  • 30
  • 68
Darxis
  • 1,313
  • 1
  • 14
  • 32
28

The TFS Preview login apparently uses Internet Explorer and thus might conflict with other MS Accounts you are using. Fully clearing the IE cache seems to work for me. After the cache clearing, I get to the correct login screen and may enter my credentials as needed.

fincooper
  • 2,647
  • 2
  • 13
  • 11
  • 3
    In Windows 10 clearing the Cache of Edge browser will NOT work. You must clear it in IE. FYI. – Brett Sep 02 '15 at 19:50
  • 2
    This also work in vs2017 community where I've setup my vs with both on premise tfs and visualstudio.com account. – Ariwibawa Mar 27 '17 at 03:55
  • this worked in VS 2017 after I reset my user's password via computer management. Had to restart Visual Studio after that. Opening the web view in Visual Studio (`ctrl`+`alt`+`r`) and trying to open the TFS page only gave me an error about invalid login information but no way to log out. – Steffen Winkler Sep 27 '17 at 13:19
  • I got this error when trying it from a server that didn't have Internet Explorer installed. Switching to a server that *did* have it installed fixed it for me. – JamesQMurphy Sep 13 '19 at 15:39
20

I tried all of the suggestions here. None worked. This could be my particular situation where I connect some VS instances to our company TFS and some instances to my private TFS.

The only way to solve it for me is to close all VS instances and start a new instance.

Oddly enough, connecting to the internal TFS is never a problem. Connecting to *.visualstudio.com sometimes raises this issue.

Gerben Rampaart
  • 9,216
  • 3
  • 23
  • 32
  • 2
    Came here to agree that after trying all the above answers, this is the only one that worked for me. I am using a similar setup as you where I am connecting with my company name to my personal TFS. – JasonWilczak Sep 09 '15 at 17:27
  • 2
    Restarting VS fixed it here too. I did happen to name my project after my company but I'm not sure how TFS would know that name from any other name...? – Dave Oct 31 '16 at 22:37
  • 1
    So odd! This is how I fixed my problem with VS2017. – Nurhak Kaya Jul 04 '17 at 09:24
11

In VS 2015 it can be achieved by Team Explorer > Connect > Manage Connections and selecting the team project again. In case of there exist more than one account in VS, Team Explorer asks for which account to use to connect to the team project.

Mikkk
  • 121
  • 1
  • 6
8

Make sure that Windows Authentication hasn't been disabled for the Website / Application within IIS.

I'm not sure HOW this happened, but I did uninstall Hyper-V today to be able to install VMWare Player and then re-install Hyper-V

Reenabling this allowed everything to work again.

enter image description here

Simon_Weaver
  • 120,240
  • 73
  • 577
  • 618
8

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.

tony09uk
  • 2,442
  • 9
  • 37
  • 61
  • 1
    At my company, we use our Windows credentials to log into TFS. When I changed my Windows password, I couldn't log into TFS anymore through VS2017. Step A and B of this answer solved my issue. – yesman Nov 14 '17 at 14:52
  • Awesome, 'A' was all I needed as well – GJHix Jan 29 '18 at 12:59
  • 1
    The first step resolved my issue in VS 2017 Community edition. Thanks a lot – Mathew Markose May 22 '19 at 19:20
7

In team explorer I removed project... then in Manage Connections, clicked on 'Connect to a Project...'

enter image description here

enter image description here

In this screen choose your project then click on Connect... this solved my problem.

pcdev
  • 2,416
  • 2
  • 17
  • 37
S.Hoseinpoor
  • 351
  • 1
  • 8
  • 18
  • Thank you, this worked for me too - tried the top 5 suggestions and none of them worked this time (other methods worked in the past, this keeps happening to me!). Didn't need to remove the project, I was just able to reconnect. Just added an extra screenshot. – pcdev May 25 '18 at 05:37
5

This happens to me regularly, and none of the solutions described above works every time. Most of the times the solution where you use the "Connect to Team Projects button" works fine, but sometimes nothing happens when I do this.

Other times I simply have to re-login to http://tfs.visualstudio.com using the Visual Studio built-in browser (Ctrl+Alt+R) or via Internet Explorer.

(As suggested in some of the other answers, for my part this is not caused by multiple live-ids)

shA.t
  • 15,232
  • 5
  • 47
  • 95
andersh
  • 6,839
  • 4
  • 36
  • 28
  • I normally can use Rizowski's answer but this one worked for me in the recent case of signing in with the wrong Microsoft Account. This was a lot less painful than clearing everything in IE. – MikeBaz - MSFT Mar 28 '14 at 21:22
5

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.

Timeless
  • 6,444
  • 8
  • 54
  • 90
  • This solved my issue, windows had cached my credentials and I had to update my password on my domain and the OS wasn't smart enough to do the same for the cache. – Justin Mar 09 '18 at 17:24
  • This solved my problem (from the linked article): Close all instances of VS Delete %localappdata%.IdentityService Restart VS – wbj Apr 09 '19 at 20:50
4

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

bloparod
  • 1,628
  • 1
  • 14
  • 17
  • This should work fine with regular TFS server. However this won't work with the TFS preview. After re-adding the server, you still get the IE-based login process. If you have another liveid than the one authorized logged in, you won't get prompted for username/password (see my anwser below) – fincooper Oct 19 '12 at 15:09
3

I got this error, after all fiddling work I could do — the disk space was full!

Clearing it fixed my issue.

Artemix
  • 1,899
  • 2
  • 21
  • 32
Pasha
  • 658
  • 1
  • 5
  • 9
3

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.

Paul Schroeder
  • 950
  • 10
  • 14
3

Disconnect from Team Fountation Server under Team Menu and reconnect it from Connect Tab under Team Explorer Window

enter image description here enter image description here

Abhishek Siddhu
  • 547
  • 6
  • 20
3

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

Adeel Shekhani
  • 386
  • 1
  • 4
  • 12
2

I had to "run as a different user" to get Visual Studio to connect using my TFS account. It seemed to be trying to use my Microsoft account instead.

Text and image from: https://www.visualstudio.com/en-us/docs/connect/connect-team-projects

To change accounts

To run Visual Studio under an account that is different from your logged on Windows account, open the context menu for devenv.exe to access your run as options.

Context menu for Visual Studio devenv.exe

You can locate the executable in the following folder: Drive:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE.

user1568891
  • 375
  • 6
  • 11
2

I've experienced this issue after an TFS upgrade, and somehow Visual Studio is caching invalid login credentials. I've found two ways to fix it, first, using this answer I completely reset Visual Studio, then reconnected:

Click on menu ToolsImport and Export SettingsReset all settingsNext"No, just reset settings, overwriting all current settings"NextFinish.

For some strange reason, after the reset it connected without issue (I didn't even have to re-enter my credentials or reconfigure TFS after the reset).

The second approach was easier. First close all instances of Internet Explorer and Visual Studio, then open Internet Explorer and browse to TFS, login, then open Visual Studio again and attempt to connect to TFS one more time.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
David Rogers
  • 2,284
  • 2
  • 30
  • 68
2

I finally found the right answer for me on the web.

For me it happened after I changed my password and Windows cached the TFS password. It is require to be updated manually. This is one way to do it:

Solution found at: developercommunity.visualstudio.com

CREDIT: Lavente Nagy! Thanks so much!

Fix Summary:

I found a solution, and it works on Windows 7/Windows 10 too. The steps are the same:

Close Visual Studio. 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 Visual Studio and everything should work again.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Eric Ouellet
  • 9,516
  • 8
  • 69
  • 100
2

Check the information in registry : HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSCommon\Keychain\Accounts and delete the related keys under Accounts section.

Clear the cache in these paths:

  • %localappdata%\Microsoft\TeamTest

  • %localappdata%\Microsoft\Team Foundation

  • %localappdata%\Microsoft\VisualStudio

  • %appdata%\Roaming\Microsoft\VisualStudio

Hope this will work.

Note: By doing this may clear all the cookies and caches and load the Visual Studio New.

SuRa
  • 893
  • 8
  • 13
2

I was also facing the same issue as you did. Here is what I did to solve:

METHOD 1

  1. Click the 'Connect' icon just next to Home icon in Solution Explorer.
  2. Choose your project > Right Click > Connect.
  3. Try Check-in the project and this time it will happily proceed.

This is what I tried, and I did not need to logout from any sessions from TFS or VS Account.

METHOD 2

  1. Just press refresh on the top of Team Explorer.
  2. Try to Check-in.

This is also easy method.

Hope this helps.

noobprogrammer
  • 2,038
  • 3
  • 13
  • 25
2

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.

Mani5556
  • 440
  • 2
  • 8
  • 29
1

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.

Simon_Weaver
  • 120,240
  • 73
  • 577
  • 618
1

Now I got the solution to the problem which I have faced: The TFS remembered the prior password when I got logged in by using my mobile VPN.

Solution:

Resetting the account that I used to connect using VPN

rollstuhlfahrer
  • 3,762
  • 9
  • 21
  • 37
clarifier
  • 119
  • 1
  • 12
  • This would not have been an issue with only TFS. It would have been an issue with everything connected to your NT Login. – deutschZuid May 11 '17 at 23:07
1

I get this problem when I am forced by our IT security policy to change my password. After a password change, when I connect to TFS using VS2017, I am no longer authorized to access our TFS server and get the TF30063: You are not authorised to access ...:8080/tfs error message.

However, if I connect using VS2013, I can connect to the server without problems and the access denied error with VS2017 goes away.

Nigel Davies
  • 1,118
  • 1
  • 8
  • 25
0

Try making Internet Explorer your default browser temporarily.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Chris Halcrow
  • 21,541
  • 11
  • 115
  • 145
0

In my case I had a proxy. I had edited the devenv.exe.config and set the proxy there. But today I changed the proxy domain password and TFS failed (menu ViewWindowsBrowser also failed). I could of course have edited the devenv.exe again. But there was a solution to remove it altogether. A brilliant one. It is given here.

Open menu TOOLS* → Extensions & Updates.
Click on Updates... in the left-hand menu

Here it asks for password and restarting Visual Studio. All okay. For more info, look for the answer in the link.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Blue Clouds
  • 4,483
  • 2
  • 30
  • 53
0

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.
kyorilys
  • 747
  • 13
  • 27
0

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.

Jason D.
  • 310
  • 2
  • 11
0

After updating from TFS 2018 v3 to DevOps Server 2019.0.1 last weekend I now receive this authentication error when attempting to manage security:

TF30063: You are not authorized to access tfs.

I receive this error when attempting to manage security from the Server Administration Console via Application Tier > Administer Security. I also receive the error when I attempt to set permissions via tfssecurity cli tool. I am in the local administrator group and I am listed in the console administration user section.

I'm trying to set permissions because after the update I received several reports from employees that receive errors when they try to access their projects. Those errors are:

TF40049: You do not have licensing rights to access this feature: Code.

I spent 8 hrs working through this issue yesterday, and this is what fixed our problem:

  • deleted DevOps server cache. (location of cache listed in devops admin console on server)
  • reboot server.

I deleted the cache off the server based on an article I read with the same error, a user was having security/permissions issues with visual studio and they deleted the vs cache on their local machine and it solved their problem. I don't know if deleting the cache or the reboot would have fixed it independently because I did them both as a single troubleshooting step.

Hope this helps someone.

Kyle Burkett
  • 1,161
  • 11
  • 26
0

For me, all the above didn't work (worked partially though)!

In credential manager, under Windows credentials and Generic Credentials both places I had to add user credential.

In Windows Credentials, TFS Server name without "http" and port info. Just server name.

In Generic Credentials, TFS Server name with "http" and port info. like, http://servername:8080/

enter image description here

0

If Rizowski's answer of clicking the green plug connect-button doesn't work and you have multiple workspaces, the problem might go away by switching to the other workspace and back again.

Protector one
  • 6,025
  • 4
  • 52
  • 77
0

Same problem not resolved after trying all the above solution for me, then the below command resolve the issue. open a run command on windows and just copy the below command and make the necessary changes like domain\loginname and the VS path

runas /netonly /user:domain\loginname "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe"

Senthil
  • 61
  • 3