共用方式為


Visual Studio 2010 Beta1 + TFS + HTTPS (TF31001): The ServicePointManager does not support proxies with the https scheme.

This is just a little note to myself and others who might run into this. I was using Visual Studio 2010 and Team Foundation Client to access a CodePlex project over HTTPS (port 443), and got this error message:

---------------------------
Microsoft Visual Studio
---------------------------
Microsoft Visual Studio

TF31001: Cannot connect to Team Foundation Server at tfs07.codeplex.com. The server returned the following error: The ServicePointManager does not support proxies with the https scheme.
---------------------------
OK   Help  
---------------------------

By the way, did you know that you can press Ctrl+C to copy the contents of a message box dialog to clipboard? (Well, at least in Visual Studio message boxes).

Anyway, it turns out this is a known bug: https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=453677

The workaround so far is to create a couple of string values in the registry:

This problem it seams is to do with the way Visual Studio 2010 connects to your TFS server over HTTPS. The default value for “BypassProxyOnLocal” in Visual Studio 2008 was “False”, but it has been changed to “True” for Visual Studio 2010 Beta 1.

You can fix this by adding the following registry keys and restarting Visual Studio 2010:

You need to add a “RequestSettings” key to both of the following location that contains a string value pair of “BypassProxyOnLocal=’False’”.

32bit OS Key Locations:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TeamFoundationServer\10.0\RequestSettings
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\RequestSettings

64bit key locations:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\TeamFoundationServer\10.0\RequestSettings
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TeamFoundation\RequestSettings

How to: Change the BypassProxyOnLocal Configuration: https://msdn.microsoft.com/en-us/library/bb909716(loband).aspx

Update: I just noticed Aaron Block has also blogged about this.

Comments

  • Anonymous
    June 22, 2009
    Interesting Finds: June 23, 2009