"Add service reference" is disabled
In Visual Studio 2008 you can right-click a project and choose for “Add service reference” to create a proxy class for your web service. WCF preferred, of course.
But for some reason, the Visual Studio team disabled it when you’re in debug mode. Something that used to work in Visual Studio 2005, so after starting a host, you could add the reference. In VS2008 this is disabled, or grayed out’.
The solution is to set your host as startup project, press CTRL-F5 so it’ll be started without debugging and then you’re able to choose to add the service reference.
Thanks for the quick solution!
Thanks… quick and easy.
use the following reference if ServiceMetadataBehavior is not worcking in vs 2008
using System.ServiceModel.Description;
Thanks dude… It works for me.
Thanks…..its really useful for the beginners..
This has been driving me crazy for hours! Thanks for pointing that out.
Thanks Dennis fot the quick soluton
Thanks
Thanks for your help, appreciate it. On to the next problem 🙂
Thanks very much !!
Great, I was going crazy over not being able to add the service reference. Thanks for the tutorial and this addition!
In case of VS2005 I cant find the Add Service Reference option? How do we add it as reference?
Its working.. Thanks alot.. for this article…
i think this is problem of the version missmatch in the OS.