Team Foundation Server Client and Proxies


If you use Team Explorer (or the TFS client components) and have to configure to connect using a proxy, you might find yourself a little stumped. 

Fortunately for us former Readify and current Microsoft TFS guru Grant Holliday provides excellent insight into how to solve this problem, via Stack Overflow.

If you just want to configure your client to use a proxy server, there is no property to do this. You have to set a registry key or an undocumented environment variable.

For TFS2008 clients, the registry key is: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\SourceControl\Proxy]
"Enabled"="True"
"Url"="http://someproxy:8081"

For TFS2010 clients, the registry key is: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Proxy]
"Enabled"="True"
"Url"="http://someproxy:8081"

In either TFS version, you can set the undocumented environment variable:

System.Environment.
SetEnvironmentVariable("TFSPROXY",http://someproxy:8081);

Here’s Grant’s original answer on Stack Overflow (up vote if it helped you!).


About Rob Sanders

IT Professional and TOGAF 9 certified architect with nearly two decades of industry experience, 18 years in commercial software development and 11 years in IT consulting. Check out the "About Rob" page for more information.

Leave a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>