TF400324: Team Foundation services are not availab

2019-01-25 05:40发布

When I open my existing solution in Visual Studio 2012 professional, I got the above error. This used to work but something messed up after the computer is rebuilt.

I have installed Visual Studio 2015 Community and can connect to the same collection correctly.

I also tried to use a browser to connect to the same collection. It works fine also.
Cleaning all files in AppData\Local\Microsoft\Team Foundation\4.0\Cache does not work.
It should not be a firewall or proxy issue since Visual Studio 2015 works.
Anyone knows what is wrong with Visual Studio 2012 and how to fix it?

Edit:

This error can happen with later versions of TFS:

Team Foundation Error

TF400324: Team Foundation services are not available from server TFSServer\DefaultCollection.

Technical information (for administrator):

Unable to connect to the remote server

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xxx.xxx.xxx.xxx:443

9条回答
在下西门庆
2楼-- · 2019-01-25 05:48

This issue is happening when server is not responding, In my case server hosting TFS was down, we restarted and get connected.

查看更多
贪生不怕死
3楼-- · 2019-01-25 05:54

I got this error in TFS2017. For me the problem was a Self-Signed Certificate.

Open the TFS URL in IE and you will see a Red Address Bar:

enter image description here

Click the "Certificate Error" in the address bar:

enter image description here

Then select "View Certificates":

If clicking "View Certificates" doesn't work, right click on page > Properties > Certificates.

enter image description here

If the Install Certificate button is hidden to make it visible you will have to Open Internet Explorer Options > Security > Sites > type the TFS server URL > Tick Require server verification > click Add. (If the dialog is disabled see the guide Trusted Sites Dialog is Disabled at the end of this answer).

enter image description here

Once you have the install certificate button available, select “Install Certificate”.

enter image description here

This will launch the Certificate Import Wizard. Make sure to Choose the option “Place all certificates in the following store” and select browse.

enter image description here

Select Trusted Root Certification Authorities and click Ok.

enter image description here

Click Finish on Completing the Certificate Import Wizard:

enter image description here

Click yes on the security warning to install the certificate.

enter image description here

=================================================

Trusted Sites Dialog is Disabled

You can check to see if the site is Trusted, on Windows 7 the path is: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey

The key should contain several string values with a name indicating the URL and numeric data indicating the zone, one of the following by default.

  • 0 = My Computer
  • 1 = Local Intranet Zone
  • 2 = Trusted sites Zone
  • 3 = Internet Zone
  • 4 = Restricted Sites Zone

If the TFS site is not listed in the registry then add it manually. Restart Visual Studio and try to connect to the TFS server again from Visual Studio. Once you can connect you can also remove the TFS server from the Connection List. I suggest removing it and adding the FQDN url which will most likely already have a Trusted Site rule.

Edit

Hit this again. This time it was caused by a problem with a network card that was replaced on the weekend by our telecommunications provider.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-01-25 05:54

...better late than never...
I just had a user run into same error TF400324 connecting VS2012 to TFS2015 (hosted in a virtual private cloud). TFS Web Access worked fine for her, but Visual Studio 2012 UI was stuck in offline connection.

FIX: She managed to get VS connected again after clicking Team Explorer > Connect | {TeamProject}, Then select desired Team Project below the TFS Server connection (see screenshot attached).

NOTES:
I suspect clearing client-side TFS cache might also fix, but all VS instances would need to be closed then "Connect to Team Project Connection" re-established. Just disconnecting and reconnecting VS to TFS did not clear the "offline" state.

Error she saw was in VS output window:

This solution is offline. [Team Foundation Server: {//TFS Collection URL}] The solution was offline during its previous session and will remain offline. TF400324: Team Foundation services are not available from server . Technical information (for administrator): Page not found.

NOTE: I recently moved TFS to different domain requiring SSH connection and localhost port mapping. I have users going offline much more frequently due to different proxy routing depending on whether they are at work or connected more directly to the Internet.

Screenshot: VSTE Reconnect to offline project

查看更多
贪生不怕死
5楼-- · 2019-01-25 05:55

According to this blog the solution is (and Yes it worked for me)

  1. Close all instances of Visual Studio
  2. Open Task Manager and check if any TFS Services are running. Select each of them and click on End Process Tree (in my case I did not find any of them to End)
  3. Browse to the folder %LocalAppData%\Microsoft\Team Foundation\
    and then select the folder with your TFS version and go inside the Cache folder.
    for example, in my machine the path was %LocalAppData%\Microsoft\Team Foundation\7.0\Cache and it should be the same on your machine with the difference of the TFS version folder name.
  4. Delete everything in that Cache folder.
  5. Restart Visual Studio and build the project
查看更多
The star\"
6楼-- · 2019-01-25 06:05

For me the fix was simply running Visual Studio (2010) as an administrator.

查看更多
相关推荐>>
7楼-- · 2019-01-25 06:09

Try clear both local TFS cache and Visual Studio Cache

clear visual studio cache under

%APPDATA%\Microsoft\VisualStudio

clear TFS cache under

%LocalAppData%\Microsoft\Team Foundation
查看更多
登录 后发表回答