现在的位置: 首页 > 综合 > 正文

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

2013年03月23日 ⁄ 综合 ⁄ 共 566字 ⁄ 字号 评论关闭
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")> _

 

【上篇】
【下篇】

抱歉!评论已关闭.