有没有办法通过多个服务激活添加WCF svc-less激活?

时间:2013-01-15 17:30:49

标签: wcf wcf-binding svc

给出以下配置:

<serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
    <serviceActivations>
        <add relativeAddress="./UserService.svc" service="Mercato.KnowledgeKube.WebSvc.Service.KnowledgeuserManagerService" factory="Mercato.KnowledgeKube.WebSvc.WCF.KnowledgeServiceHostFactory" />
        <add relativeAddress="./ProductService.svc" service="Mercato.KnowledgeKube.WebSvc.Service.ProductManagerWebServices" factory="Mercato.KnowledgeKube.WebSvc.WCF.KnowledgeServiceHostFactory" />
   </serviceActivations>
</serviceHostingEnvironment>

两个./UserService中的第一个是可以访问的,我可以创建一个服务引用,但ProductServce不可协调。我在这里做错了什么?

修改

这是例外:

 There was no endpoint listening at http://localhost/KnowledgeWebService/ProductService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution   
and adding the service reference again.

1 个答案:

答案 0 :(得分:0)

没有端点监听,因为......我没有用相关属性来判断产品服务。我首先在寻找更复杂的问题。

相关问题