Can’t connect to Visual Studio Online from any version of in VS: "The underlying connection was closed: An unexpected error occurred on a send."

Interesting one today.


Customer reported not being able to connect to VSO from any VS version. Kept getting this:

The server returned the following error: TF400324: Team Foundation services are not available from server <ACCOUNT>\DefaultCollection. Technical information (for administrator):  The underlying connection was closed: An unexpected error occurred on a send.


  • The customer could connect successfully using a web browser, so server-side was fine.
  • Following (the defacto guide for resolving this sort of thing) did not help.

Turns out he was using Kaspersky Endpoint Security and this was blocking the connection. Customer temporarily disabled Kaspersky Endpoint Security and then was able to connect from Visual Studio. He added an exception for * in the Web Anti-Virus policy settings of Kaspersky, re-enabled the protection and was able to connect. Looks like Kaspersky was blocking on connections other than port 80.


Comments (4)

  1. Israel says:

    Thanks, thanks a lot…

    It was so helpful.

  2. Osama says:

    Really thx for helping me it is good way and the right solution for who have Kaspersky Endpoint Security.

    i did it and add exception for * and it work now, really thx

  3. Jean Luis says:

    Very helpful. My exact issue.

Skip to main content