For TFS 2010 Beta 1, Resolving TF31001 "The ServicePointManager does not support proxies with the https scheme."
Recently, we’ve noticed a number of Team Explorer 2010 Beta 1 users are encountering the following error while attempting to connect to a HTTPS TFS server:
TF31001: Cannot connect to Team Foundation Server at xxx.com. The server returned the following error: The ServicePointManager does not support proxies with the https scheme.
This problem appears to be related to our decision to switch the default behavior of the BypassProxyOnLocal setting. The BypassProxyOnLocal setting indiciates whether the proxy server should be bypassed for local addresses. (Local requests are identified by either the lack of a period [such as http://webserver] or those that are talking to the local server [such as http://localhost or http://127.0.0.1]). If true, the local requests bypass the proxy; otherwise, if false, all Internet requests are made through the proxy server.
In TFS 2008, the default value for BypassProxyOnLocal was false. This changed in 2010. Setting BypassProxyOnLocal to true improves the performance of the initial connection and resolves a performance problem experienced by some customers. So, unless you are reciving this error, you should not change the value of BypassProxyOnLocal.
If you are receiving the TF31001 error, you should be able to resolve this issue by running the following commands:
On all machine:
reg add hklm\SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\RequestSettings /v BypassProxyOnLocal /t REG_SZ /d False
reg add hklm\SOFTWARE\Microsoft\TeamFoundationServer\10.0\RequestSettings /v BypassProxyOnLocal /t REG_SZ /d False
Additionally on a 64-bit machine:
reg add hklm\SOFTWARE\Wow6432Node\Microsoft\TeamFoundationServer\10.0\RequestSettings /v BypassProxyOnLocal /t REG_SZ /d False
reg add hklm\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TeamFoundation\RequestSettings /v BypassProxyOnLocal /t REG_SZ /d False