WCF Contract Name 'IMyService' could not be found?

后端 未结 13 2081
借酒劲吻你
借酒劲吻你 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:25

    There's 2 mistakes in my case:

    1. The config sections are copied from another proxy project, and I forgot to change the namespace to full path.

    2. As a client, I copied the endpoint section into services node - the client is also a wcf service.

提交回复
热议问题