添加WCF服务参考

时间:2014-07-16 19:02:25

标签: c# wcf service-reference

我在项目中添加WCF服务引用时遇到了一些问题,该项目未设置为" StartUp Project"。我一直在"找不到引用合同的默认端点元素...."。我尝试在我的StartUp项目上添加相同的WCF服务引用,它工作正常。

这是我使用的当前app.config客户端配置:

<client>
  <endpoint address="http://host:8080/library"
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ILibrary"
      contract="ServiceReference.ILibrary" name="WSHttpBinding_IAccountAccess">
  </endpoint>
</client>

不确定我错过了什么或做错了我已经尝试输入项目的完整命名空间作为合同。

谢谢,

0 个答案:

没有答案