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

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

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:
  • 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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.