I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient.
I just worked through this issue on my service. Here is the error I was receiving:
Service 'EmailSender.Wcf.EmailService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Here are the two steps I used to fix it:
Use the correct fully-qualified class name:
Enable an endpoint with mexHttpBinding, and most importantly, use the IMetadataExchange contract: