I tried connecting to TFS using C# . Here is my code :
Uri url = new Uri("http://serverpath/DefaultCollection");
NetworkCredential nc = new NetworkCredential("ID", "Password", "Domain");
TfsTeamProjectCollection coll = new TfsTeamProjectCollection(url, nc);
coll.EnsureAuthenticated();
I get the following error :
The underlying connection was closed: An unexpected error occurred on a receive.
Inner Exception : {"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."}
Any solutions about what could be the issue ??