TF400324 Team Foundation services are not available

旧巷老猫 提交于 2021-01-29 10:47:59

问题


i have a problem in team foundation when i want connect to tfs server with VS.

error at connect time :

TF400324: Team Foundation services are not available from server <URL>.
Technical information (for administrator):
The server committed a protocol violation. Section=ResponseHeader Detail=Header name is invalid

but i connect with browser to tfs server and can't connect with VS.

tnx to all :)


回答1:


Try clear both local TFS cache and Visual Studio Cache, then try it again.

  1. ​Close all Visual Studio instances.
  2. clear visual studio cache under

    %APPDATA%\Microsoft\VisualStudio
    
  3. clear TFS cache under

    %LocalAppData%\Microsoft\Team Foundation\{version}\Cache
    
  4. Go to Control Panel -> User Accounts -> Manage your Credential -> Windows Credential, select the TFS url to remove it.
  5. Restart your Visual Studio to re-connect to your TFS Server.

If that still not work, just try adding following code to your TFS web.config file (C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\web.config):

<configuration>
      <system.net>
            <settings>
                  <httpWebRequest useUnsafeHeaderParsing="true"/>
            </settings>
      </system.net>
</configuration>

UPDATE:

Try below things :

  • Run below command to reset the user data, then try it again.

    cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE,

    devenv.exe /resetuserdata

  • Try run as another user with command: runas /netonly /user:<account> devenv.exe
  • Reset IIS and application pool

If that still not work, I suggest removing the VS first (clean uninstall), then reinstall it again..



来源:https://stackoverflow.com/questions/52177439/tf400324-team-foundation-services-are-not-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!