Cannot connect to any online resource

Visual Studio-2010Visual Studio

Visual Studio-2010 Problem Overview


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:

> Cannot search for online exensions because an error occured while trying to contact the server

It asks me to enable access to extensions on the vistual studio gallery. I did enable those in Extension Manager Tools/Options page. Internet connection was fine, too.

My computer firewall was turned off. I have proxy to connect to internet but it's working fine when the browser connects to internet (even the internal browser in vs2010 is working fine). So where is the place in VS2010 to set up the proxy for connection to other online resources?

I am running the VS2010 Ultimate trial on another computer and that works fine.

Visual Studio-2010 Solutions


Solution 1 - Visual Studio-2010

Try adding the following to devenv.exe.config (in Common7\IDE folder):

<configuration>
  <system.net>
    <settings>
      <servicePointManager expect100Continue="false" />
    </settings>
  </system.net>
</configuration>

This is a known issue with some proxy servers that will be addressed in a future release.

Solution 2 - Visual Studio-2010

The following worked for me, I got this from the blog entry listed below.

in the devenv.exe.config file, in the <system.net> section add:

<defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy usesystemdefault="True" />
</defaultProxy>

reference: <http://gurustop.net/blog/2010/08/10/visual-studio-2010-extension-manager-online-gallery-behind-internet-proxy/>

Solution 3 - Visual Studio-2010

I had to do a bit of all the above to get mine working. My system.net settings:-

<system.net>
	<defaultProxy useDefaultCredentials="true" enabled="true">
		<proxy proxyaddress="http://your.proxyserver.ip:port"/>
	</defaultProxy>
	<settings>
		<ipv6 enabled="true"/>
		<servicePointManager expect100Continue="false" />
	</settings>
</system.net>

Solution 4 - Visual Studio-2010

In my case, Visual Studio refused to read the settings from internet explorer. I finally got it to work by explicitely giving the url to the proxy and setting the servicePointManager expect100Continue to false. To manually add the proxy address, the xml looks like this:

<defaultProxy>
    <proxy proxyaddress="http://your.proxyserver.ip:port"/>
</defaultProxy>

Solution 5 - Visual Studio-2010

For me what worked was going into Internet Explorer, opening the Tools > Internet Options > Connections > LAN Settings dialog, and changing the state of the 'Automatcially detect settings' and the proxy server settings. Depending on your connection type you may need to change these settings to get this working.

Solution 6 - Visual Studio-2010

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

Solution 7 - Visual Studio-2010

For me, the above config changes does not work in you're in a Windows Active Directory environment. Comment whatever you put in above out altogether.

What I did:

Go into Credentials Manager (Windows 7 or 8) and add the proxy credentials of whatever username that comes up in the proxy dialog, e.g. VSCredentials_corp-proxy.domain.local/username and then your Windows password.

Bada bing, I'm in!

Solution 8 - Visual Studio-2010

you can add following settings in devenv.exe.config

<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
   <proxy usesystemdefault="True" />
</defaultProxy>
<settings>
    <ipv6 enabled="true"/>
    <servicePointManager expect100Continue="false" />
</settings>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKentZhouView Question on Stackoverflow
Solution 1 - Visual Studio-2010Aaron MartenView Answer on Stackoverflow
Solution 2 - Visual Studio-2010cbeukerView Answer on Stackoverflow
Solution 3 - Visual Studio-2010Ricardo CamposView Answer on Stackoverflow
Solution 4 - Visual Studio-2010Gio2kView Answer on Stackoverflow
Solution 5 - Visual Studio-2010Carl OnagerView Answer on Stackoverflow
Solution 6 - Visual Studio-2010RandomIEsettingsSuffererView Answer on Stackoverflow
Solution 7 - Visual Studio-2010Robert KochView Answer on Stackoverflow
Solution 8 - Visual Studio-2010Mohammad tanvirul islamView Answer on Stackoverflow