Add Web Reference instead of Service Reference in Visual Studio 2008

I’m just in the middle turning a 2-tier app into a 3-tier app (it was planned all along, so it’s been quite easy so gar). Anyway I added the service reference to my client project and wanted to reuse shared assemblies (which was a pain in the a** in ASP.net 2.0 Webservice – let me just say I had my set of batch scripts altering the generated proxy code). But in Windows Communication Foundation it’s really easy. When you add a reference just click on the ‘Advanced’ button and choose the options.

But that’s not actually what I wanted to blog about. Even with Visual Studio 2008 and .net 3.5 (3.0) I prefer to use old style Webservices sometimes but at the same time of course I don’t want to miss out on Linq etc. Until now I kept changing the target plattform to .net 2.0 to get my ‘Add Web Reference’ context menu item and then changing it back to .net 3.5. It works, but I kept grumbling why on earth they removed the option in VS08, well it turns out they didn’t remove it, the just moved it.

In the advanced dialog at the bottom you can add a web reference as before. (But it is still counter intuitive, why is adding an old style reference a suboption after picking a service reference? I would have preferred my context menu item.)

7 Responses to “Add Web Reference instead of Service Reference in Visual Studio 2008”


  1. 1 Chris January 7, 2009 at 20:08

    Thanks, I was wondering about this too… why when I create a Smart Device app, the web services folder was off to the side and I could just right-click and add, but for windows apps, the option was not there…

  2. 2 Søren July 31, 2009 at 20:11

    Thanks – was having a hard time finding the Add web reference :-)

  3. 3 Fattah January 30, 2010 at 18:38

    Thanks to help me find out the position

  4. 4 Dave March 5, 2010 at 19:41

    Brilliant! Took me a while to find that damn link. Thanks

  5. 5 Stacy Vicknair April 6, 2010 at 14:17

    Thanks, this helped me figure out what was going on when trying to have a web reference as a part of a library. You would think that this menu option would be more pronounced :|

  6. 6 Flem100 April 13, 2010 at 12:17

    Many thanks :D

  7. 7 Sebastiaan May 9, 2010 at 13:26

    Thanks! Almost lost it….


Leave a Reply




Subscribe / Search


XING

 

August 2008
M T W T F S S
« Jul   Jan »
 123
45678910
11121314151617
18192021222324
25262728293031

Twitter

Blog Stats

  • 173,980 hits