Visual Studio 2010, 2012, and 2013 Extension Manager: Accessing Gallery Behind Internet Proxy

In VS 2010, extension manager is part of a nice new generation of VS plug-in system. One of the great features of it is how it can go online talk to Microsoft Visual Studio Gallery website to retrieve list of extensions there, automatically discovering updates for installed extensions, and allowing me to add new extensions directly from within Visual Studio.

The Problem:

However, in my company I could not take benefit of that for long time. Reason is, the company uses Blue Coat proxy, with some active directory based authentication. We cannot access the Internet unless we use that proxy, no direct connection allowed, most other proxies are also blocked (by blocking the common proxies port 8080 and many other common ports).

Although I have the proxy set in Internet Explorer, and I have the username/password stored in my Windows Credentials store  (Start–> Run–> Control PanelAll Control Panel ItemsCredential Manager) -since my primary work laptop and user account on it are not part of the company domain-, Visual Studio did not seem to be able to use that.

Anything that requires online communication not directly using the browser is not working. The main feature missed by this is Extensions Manager integration with the Visual Studio Gallery online.


Another side effect of the problem was when running tests with TestDriven.NET test runner (running using Debugger or In-Process), as I had some tests that required connecting to online websites.


The Cause

It turns out (just by guessing and trial-error way) that the default proxy settings for .NET apps is for some reason not to use the system proxy and credentials. Visual Studio will be default ignore that proxy (and many other .NET applications will).


The Solution

Thanks God, .NET applications have a nice extensibility feature for things like this using the app.config file (if it was unmanaged application, I’d have no way to it).


Troubleshooting this issue in TestDriven.NET was what inspired me to get this, as I was trying to setup the credentials in the app.config file of the test project and then in Visual Studio.


So, I needed to setup the proxy settings in the Visual Studio config file., Knowing the Visual Studio IDE executable “devenv.exe”, the file I’m looking for is “devenv.exe.config”. I didn’t need to create that file (which is easy, just a standard .config file with the same name as the executable including “.exe”) because Visual Studio already has a config file with bunch of existing configuration defaults.


I want to the Visual Studio 2010 shortcut in Start-> All Programs, right clicked it, then chose “Properties”.

In the following properties Window, I clicked “Open file Location”:



This took me to the Visual Studio folder that has the “devenv.exe” and “devenv.exe.config” files:



I opened this file in Visual Studio (yes, it’s OK – the effected showed after restarting VS of course):

The section I was looking for is under “<>”. The config file already had this section to enable IPv6 (which is not enabled by default, yet another interesting default and override – I commented the override anyway later).


I modified it with this simple change:



The complete XML for copy-paste sake:

As you can see, this is very simple. It enables the proxy, tells Visual Studio to use the system (IE) oroxy, and to use the default credentials for that.


This was all required to do the trick. You just need to close Visual Studio and re-run it afterwards to take effect.


Hopefully this saves someone else facing a similar issue…

Share With Friends:

P.S. Please help me out by checking this offer, then look below it for a special gift

Your Offer

Your Gift

As a bonus for coming here, I'm giving away a free newsletter for web developers that you can sign up for from here.
It's not an anything-and-everything link list. It's thoughtfully collected picks of articles and tools, that focus on Angular 2, ASP.NET 5, and other fullstack developer needs.

  • babyartikel

    Every time I see blogs as good as this because I should stop bludging and start working on mine.Thanks

  • potenzmittelshop

    It? s the first time I have heard that in Macedonia, obits are an unusual observe. You have wonderfully written the post. I have liked your way of writing this. Thanks for sharing this.

  • Alina Sesko

    Detailed article would it be OK if i translate into Spanish for my sites readers? Thanks

  • swiss gear back packs

    Awesome blog buddy. It really is very good to find out superb information and facts along with this sort of detail. Thank you!

  • Melani Gleim

    Usefull post do you mind if i summerize this on my site? Thanks

  • Autumn Venske

    Thank you for creating this blog and sharing your viewpoint. I enjoy reading it within my lunch break at the office. It’s nice to consider my mind off work even if for only 30 mins. Cheers

  • Dominique Primeaux

    Great information, appreciate the time you put in to make this blog. First, emerse an impeccably clean wash cloth in water as hot as you can tolerate, place this cloth on your face to open pores much like a steam bath using an impeccably clean basin dissolve salt in water as hot as you can tolerate. Emerse the wash cloth in this solution and massage your face vigorously with the salt water then rinse your face with the coldest water possible massaging vigorously and massage face vigorously with a clean fluffy towel.

  • Marquetta Lager

    Appreciate you creating this web site and sharing your viewpoint. I like reading it during my lunch break at work. It is nice to consider my mind off work even if for only 30 mins. Cheers

  • Elenora Gipe

    Today while searching for content material on a University document. I simply wanted to state nice article and great ability as a copywriter. I hope to be as good also some day time. Thanks

  • Luna Neiman

    I’m just creating a short post to express I liked your article and enjoyed reading it. I’ve bookmarked your site so i can be notified of recent content. Thanks

  • Sun Hefti

    I’m just building a short post to express I liked your article and enjoyed reading it. I’ve bookmarked your site so i can be notified of latest content. Thanks

  • Katie Tiller

    I found your blog during my search with regard to content on a College paper. I just wanted to state good article as well as great ability as a copywriter. I hope to be of the same quality one day time. Thanks

  • Imogene Milling

    Today while searching with regard to content on a University document. I just desired to state good post and great ability as a copywriter. I hope to be of the same quality one day. Thanks

  • Merle Mahalko

    This page seems to get a good ammount of visitors. How do you promote it? It gives a nice unique twist on things. I guess having something authentic or substantial to say is the most important thing.

  • Oda Illig

    Simply wanna tell that this is very beneficial , Thanks for taking your time to write this.

  • elliptical cross fitness

    Thanks and Please preserve updating your Web site. I are going to be stopping by each and every time you do .

  • unreine gesichtshaut

    very good blog! keep up the good work!

  • Simon D.

    Thanks for this hint.
    I actually needed one more custom setting to make it work:

    as written here:

    • Anonymous

      This sounds important too in some cases. Will try it in cases when I (thought) was getting random failures.

      Thanks a lot :)

  • Someone

    Dude, I just want to say thanks lot. This fixed the errors I was getting with Nuget

  • Zolamadolo

    That Was Help full Thanks

  • Zolamadolo

    That Was Help full Thanks

  • Maxim Golov

    Thanks a lot for this tip, saved me quite some time when configuring the code samples extension

  • Pingback: Connecting Visual Studio 2010 to TFS over a Corporate Proxy (via: Visual studio 2010: cannot connect for any online resource – Stack Overflow) « The Wiert Corner – irregular stream of Wiert stuff()

  • chronodekar

    Thank you very much for this. It was helpful!! :)

  • Junior l,,l

    thank you man, it’s help me so much

  • wilpal

    Your post helped me. Tons of thanks

  • Avi

    I am not able to find the Devenv.config files in the folder, I am using Visual studio Express 2013 version, can you help me here /.