Workflow service as a service reference on WCF service

I have added workflow service as reference to wcf service, and it created web.config file with client endpoint. while creating the proxy object its running into issue. Its not able to recognize the contract and throwing below error -

Could not find default endpoint element that references contract 'servicerefname.interfacename' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

I checked reference.cs file and config, everything looks fine. Can someone post redirect me to example where workflow service been reference from WCF?

Note - Its in .Net 4.0


Make sure that you have the web.config in the calling project. For example if you added a service refernce to a project called: MyGateway.proj. and then you have a website that uses classes in the MayGatway.proj. If it is the wbesite that calls the Gateway, which in turn calls the webservice - It is important that the web.config settings are applied in the website.

链接地址: http://www.djcxy.com/p/95900.html

上一篇: 从工作流调用外部服务

下一篇: 工作流服务作为WCF服务的服务参考