WCF Contract Name 'IMyService' could not be found?

后端 未结 13 2059
借酒劲吻你
借酒劲吻你 2021-02-01 01:16

The contract name \'IMyService\' could not be found in the list of contracts implemented by the service \'MyService\'.. ---> System.InvalidOperationException: The

13条回答
  •  醉话见心
    2021-02-01 01:44

    @Garry (a bit late, I know)

    If your ServiceContract attribute defines a ConfigurationName, this should be the value in the endpoint, not the fully qualified name. I just had this problem now as described by the OP, and this was the solution for me. Hope this helps someone else who stumbles across this.

提交回复
热议问题