Home > Visual Studio, Visual Studio 2010 > VS.NET: Add Service Reference, Discover Service does not work

VS.NET: Add Service Reference, Discover Service does not work

Trying to add a Service Reference in Visual Studio using the Discover Services in Solution and the Wizard can’t find the Service in the Solution? Logo Microsoft Visual Studio

In order to use the "Discover services in solution" functionality, the service projects must be based on one of the WCF project templates.
If you want to alter your existing project(s) so that they will be identified as projects containing WCF service(s), do the following:

  • Right-click on the project in the Solution Explorer, and select Unload project
  • Right-click the project again (this time the node will end in (unavailable) ) and choose Edit xxxxx.csproj
  • In the first <PropertyGroup> section, add the following line:
    <ProjectTypeGuids>{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
  • Save and close the file
  • Reload the project by right-clicking it again and choose Reload.

  You should then be able to use the "Discover services in solution" functionality.

  1. May 21st, 2010 at 16:57 | #1

    Thanks! I’ve been stuck on this for hours.

  2. Bolli
    June 2nd, 2010 at 16:36 | #2

    Well i actually created my service-project as WCF-Library, so the projecttypeguid-entry is already there. I then added a client to the solution and tried to add a service reference, but the service does not start when i click “Discover”. Any other ideas maybe? =)

  3. Bolli
    June 2nd, 2010 at 16:46 | #3

    Nevermind, i accidently deleted the endpoint -.- sorry. thanks for convincing me that its actually meant to work though =D

  1. No trackbacks yet.
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera