Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
800 views
in Technique[技术] by (71.8m points)

visual studio 2015 - TF400324 Team Foundation services are not available

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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%MicrosoftVisualStudio
    
  3. clear TFS cache under

    %LocalAppData%MicrosoftTeam 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 FilesMicrosoft Team Foundation Server 14.0Application TierWeb Servicesweb.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.0Common7IDE,

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...