TFS31002: Unable to connect to this Team Foundation Server - tfs

We just upgraded our TFS 2013 to TFS 2015. We use VS2015 to communicate with it(we were already using it with our TFS2013). The server was not available during the time our IT made the upgrade.
After the ugprade, everybody started to work again with the server but I was seing it as Offline and I finally decided to remove the server and add it again.
When I add it again(200% sure of all the settings), I get this error:
I finally tried to do the same on our "old" installation of Visual Studio 2013(same computer, same account), and it works. I was at least capable to commit all my changes to the server.
I tried to go on the portal and click on `Open in Visual Studio", and I got another error(TFS400324):
Now I'm trying to regain access to TFS2015 with my VS2015. I can access the web portal.
Here is what I tried after some research:
Do a Repair of Visual Studio 2015
Check that I've no weird proxy
Check that there is no available update(already at VS2015 UPD 1)
Clear the cache of all my Internet explorer
Cleared %LocalAppData%\Microsoft\Team Foundation\*.*\Cache
Run VS2015 in admin
Disable my antivirus
Delete registry key HKEY_CURRENT_USER\Software\Microsoft\VSCommon\*.*\ClientServices\TokenStorage
Check that I've no proxy declared in: C:\Windows\Microsoft.NET\Framework\v*.*\Config\machine.config
I did a windows update.
I ran the command devenv.exe /resetuserdata
Any clue what is happening and how to solve it?

VS 2013 can connect to TFS 2015, but VS 2015 can't. So the issue is on client side. Try on another client machine to connect TFS 2015 with VS 2015 to check the result.
Clean the client cache: C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache and C:\Users\username\AppData\Local\Microsoft\Team Foundation\6.0\Cache. Make sure both 5.0 and 6.0 folder are cleaned.
Clean server cache on AT machine: C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services_tfs_data, and C:\TfsData\ApplicationTier_fileCache
Remove all credentials in Control Panel\All Control Panel Items\Credential Manager.
Remove TFS server in Team Explorer: go to Manage Connections--Connect to Team Project--Servers, select TFS 2015, remove it and add it.
Connect TFS 2015 with it's IP address, not server name.

This answer will not please to anybody coming here for an answer, but I had to format my computer and do a whole clean install on it.

A little trick might help.
Change port 8080 to another port. I've changed to port 5000
I hope to be useful.

Related

TFS 2017 on-premise can't install Marketplace extensions in connected mode

My TFS 2017 Update 2 on-premise is according to the Marketplace (https://marketplace.visualstudio.com/) running in Connected Mode. Whatever extension I try to install in this mode results in the error message:
Something's gone wrong
We've encountered an error while downloading the extension. Please try
again later.
If I try to install the same extension in my VSTS account it works fine.
If I disconnect my TFS on-premise from the Marketplace the "Install" button changes to "Get it free" and I can get to the download page for the extension and get the extension that way.
The error message gives no clue as to where I should start searching for the root case. Is the Marketplace having issues or is the error on my end? Do I need to open a firewall port? Something else?
I have tried this on two separate connected TFS 2017 Update 2 on-premise installations and get the same behaviour. I have TFS Administrator (Console Admin) rights on both.
Please check the permissions first to make sure you have the correct permissions to install the extensions:
What do I need to install extensions?
Project collection administrators with Edit collection-level
information permissions can install extensions. If you don't have
permissions, you can request extensions instead.
Well, I tested on TFS 2017 Update3 (no update2 on my side) while connected to TFS and everything works as expected, cannot reproduce the issue...
However that might be an temporary network issue, so just as the error message said you can try that again later... If the issue persist, then as a workaround you can download the extension from Marketplace and upload to TFS to install.
You can also try upgrading to TFS 2017 Update 3, it should work for you.
Refer to Install extensions for Team Foundation Server (TFS) for details.

tffs 2017 upgrade to 2018 web access denied

i would like to upgrade my production TFS 2017 to TFS 2018.
according to the requirement, it need SQL Server 2016 SP1, because some reason, i decide use a new production server for it.
Before doing the production upgrade, i do the upgrade test in my testing enviroment, the step is
Install SQL Server 2016 SP1
Restore the TFS 2017 Database
Install TFS 2018 Update 1
Start the TFS Upgrade Wizard using my existing db
Confirm the 8080 port is allow to connect
After finish, i can access the TFS web on the testing environment server by using http://localhost:8080/tfs or http://SERVERNAME:8080/tfs (btw Chrome only can access using localhost)
When i connect http://SERVERNAME:8080/tfs on client pc, it doesn't work, it show me
ERR_CONNECTION_REFUSED
All my server have join domain and i try troubleshoot from tfs application to firewall, no any result on it.
Is there any step wrong or other problem on it?
UPDATE:
After i reinstall Windows OS, it's work.
Try below items to narrow down the issue:
Using IP instead of the SERVERNAME in the URL, then try it
again.
Clean local caches from the client machine (TFS caches, Browser
caches)
Restart the TFS wensite from IIS manager.
Restart IIS with command: iisreset /noforce
Try changing the port number for you TFS
Rebuild the client cache.
After you move, restore, rename, or fail over a data-tier or
application-tier server, you must refresh the cache for tracking work
items and users must refresh the version control cache on client
computers.
UPDATE1:
Just try below things:
Add the client machine name/IP to the hosts file. (The hosts file should be located under c:\windows\system32\drivers\etc\hosts)
Try to detach the collection then reattach it again
Try to reconfigure the TFS.
UPDATE2:
Based on geraldlim's comment below : Turn out that after reinstalling the OS and install IIS and TFS in a clear environment, it's working.

Team Foundation Service not available (TFS2008)

We have had an automatic Active Directory/Windows password change thrust upon us, and consequently our TFS2008 build server has broken. I have changed the password for the TFSERVICE account it runs under, and updated the Visual Studio Team Foundation Task Scheduler Service to use the correct password, and checked that the underlying Sql Server is running okay. However attempts to connect to TFS are now met with the message '..HTO Status 503: Service unavailable'.
What else needs to be started to get this up and running again?
You need to always change the password using the tools in the box. You can use the TFS Administration Console that you can launch from the start menu. Or you can use the tfsconfig.exe located in the TFS install folder.
This applies to all versions of TFS from 2010 on.
If you have TFS 2008/2005 you will need to use the tfsadminutil command: http://msdn.microsoft.com/en-us/library/bb552178(v=vs.90).aspx
Note: You need to upgrade your TFS server as soon as possible. Both the OS, SQL, and TFS pre-2010 is not well supported.

Visual Studio 2013 Update 1 with WIndows 8.1 Pro update 1 unable connecting to TFS

I have vs2013 Update 1 installed on my Laptop Windows 8.1 Pro Update 1 and the server using tfs 2012. I can access tfs from browser but when I want to connect to tfs from Team Explorer I got this error message:
TF31002: Unable to connect to this Team Foundation Server: http://ServerIpAddress:8080/tfs.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
For further information, contact the Team Foundation Server administrator.
I've try :
- How to: Change the BypassProxyOnLocal Configuration
- Turn off Firewall on my laptop
Can anyone fix this issue..?
Thanks before
Did you try the following? In the "Connect to Team Foundation Server" window, hit the "Servers" Button and then try to delete the corrupted server connection. Consequently re-define the server connection once again.
I resolve my issue by deleting folder TokenStorage registry in HKEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage
Thanks you all.

Cannot connect to TFS

Hi for some reason I cannot connect to TFS anymore.When I try to do that from both te browser and Visual Studio it freezez and I get this error:
TFS is installed localy on my computer and I am using the defaultCollection and user from windows.
I have been using TFS locally for only a month and everything worked perfectly so far.
I have also tryed reseting my PC and uninstalling and reinstalling TFS but it seemes to have no effect.
Has anyone had this problem before?
Check the TFS Server. Make sure the app pool and site are running. Also if you have VS on the TFS Server (you should for this very reason) try connecting from there. If that works, it could be a network issue.

Resources