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 section, add the following line:
    {3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
  • 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.

6 thoughts on “VS.NET: Add Service Reference, Discover Service does not work

  1. 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? =)

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

  3. Did not work for me.
    I am developing in vb however.
    Reloading project after editing fails with “project already in solution”.

Leave a Reply

Your email address will not be published. Required fields are marked *