WCF Contract Name 'IMyService' could not be found?

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

    Using the visual studio 2013 "Add"->"Service" menu option created the web config sections for me but with the "endpoint" "contract" set to the name of the concrete class not the interface.

    As soon as I corrected that all started working.

提交回复
热议问题