2013-01-15 1 views
0

Учитывая следующую конфигурацию:Есть ли способ добавить активацию WCF svc-less с несколькими активациями активации?

<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 это не совместимо. Что я здесь делаю неправильно?

EDIT

здесь есть исключение:

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. 

ответ

0

Там не было конечной точкой прослушивания, потому что ...... я не decorared службы продукта с соответствующими атрибутами. Сначала я искал более сложные проблемы.