I have Visual studio 2010 Premium installed on Windows 7. When I try to connect to an online gallery or online template, I get an error message like this:
For me, having IE proxy did not help. However setting the OS proxy on windows server 2008 r2 x64 helped.
netsh winhttp set proxy myproxy.corp.com:80
and to view the settings: netsh winhttp show proxy