TF400324: Team Foundation services are not available from server in Visual Studio 2012

前端 未结 10 748
一生所求
一生所求 2020-12-01 12:03

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.

相关标签:
10条回答
  • 2020-12-01 12:35

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

    1. Close all instances of Visual Studio
    2. Open the 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. Start Visual Studio and build the project
    0 讨论(0)
  • 2020-12-01 12:36

    ...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.

    0 讨论(0)
  • 2020-12-01 12:42

    We solved it by adding a specific exclusion to ESET / Kaspersky AntiVirus for the devenv.exe "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"

    Its been working great ever since.

    I get basic idea from this link

    0 讨论(0)
  • 2020-12-01 12:47

    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
    
    0 讨论(0)
  • 2020-12-01 12:50

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

    0 讨论(0)
  • 2020-12-01 12:51

    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:

    Click the "Certificate Error" in the address bar:

    Then select "View Certificates":

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

    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).

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

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

    Select Trusted Root Certification Authorities and click Ok.

    Click Finish on Completing the Certificate Import Wizard:

    Click yes on the security warning to install the certificate.

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

    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.

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