11
votes

I am having an issue regarding Team Foundation Server where i am getting the error 'Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.' whenever i try to check in a project. I also get this error from time to time when i try to 'Get Latest Version'. I have attempted to use TFS in both Visual Studio 2010 & Visual Studio 2013 but i get the same issue.

I have also tried the following:

  • Remapping my TFS Source Control
  • Deleting all files from the local path of my source control and redownloading
  • Turned my firewalls off
  • Switching the port in which my Ethernet cable is connected to

I have included a screenshot of this error below:

Error Message

Does anyone have any idea of how to fix this, i would be massively grateful!

1
This error is indicative of a network issue. Visual Studio makes many small calls on a Get, but larger calls on a CheckIn. Sounds like your network is dodgy. Have you tries a different switch, or vlan?MrHinsh - Martin Hinshelwood
@MrHinsh I have tried a different switch, can you think of anything else? :)Charlie Stuart
As @s-krishna mentions, IIS will kill very slow connections. It's a common problem that will be even more common with certain VPNs and Network Security Appliances on your network as well.jessehouwing

1 Answers

4
votes

I came across this article which talks about this exact same problem. The author of the article talks about this error being related to http.sys bug.

Below is an excerpt from that article

Http.sys is the http protocol stack that IIS uses to perform http communication with clients. It has a timer called MinBytesPerSecond that is responsible for killing a connection if its transfer rate drops below some kb/sec threshold. By default, that threshold is set to 240 kb/sec. It turns out that there is a bug with this timer and it is causing connections to be prematurely killed. We have found that lowering this threshold reduces the number of connections that are killed by the server.

See if that helps?

Note: As mentioned in the article, the hotfix and settings have to be changed in the Application Tier (AT). TFS consists of a Application tier and a Database Tier. If your unfamiliar with the term, then you probably have just a single server installation, which means both the AT and DT are on the same server.