Resolve Error: Service has zero application (non-infrastructure) endpoints.

Error Message:

Service 'XXXService' 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.
Solution:
Service name must include the namespace as it is defined, like SayoBroker.Services.XXXService.
You can also add some attribute in your code like the following.
<ServiceBehavior(Name:="XXXService", _
                 Namespace:="http://Sayo.Own.Services", _
                 ConfigurationName:="AuthService")> _

 

posted @ 2011-06-28 14:55  sayo.net  阅读(551)  评论(0编辑  收藏  举报