Are you getting the following (a bit condescending) error message
when trying to connect with Visual Studio to TFS (Team Foundation Server)?
Team Foundation services are not available from server x.y.z.
Technical information (for administrator):
The underlying connection was closed; An unexpected error occurred on a receive.
Searching for the solution on the net, the first (and only, really) suggestion I found was
to add trace listeners to Visual Studio's .config file (system.diagnostics);
this, unfortunately, didn't show anything interesting; no error information, no nothing.
But then I remembered we just had similar issues with our
WCF services returning a similar message when trying to connect through Squid proxy servers.
Not really sure if VS and TFS use WCF services to connect, but I figured it wouldn't hurt to try the solution described there.
Steps to fix:
-
Go to c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
(or whatever is the version of VS that you have; and ...\Program Files\... on 32-bit systems)
- Open file devenv.exe.config in a text editor
- Find section <system.net>
-
Add this entry: <servicePointManager expect100Continue="false" />
to the <settings> sub-section; the whole section should then look something like this:
<system.net>
<settings>
... (other settings)
<servicePointManager expect100Continue="false" />
</settings>
</system.net>
- Restart Visual Studio
Try connecting now - worked for me.
HTH
Top
|