WCF Contract Name 'IMyService' could not be found?

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

    Your name attribute in the service element and the contract attribute in endpoint element are not correct. They need to be fully qualified names:

    
          
    

    Once you change the values to be fully qualified names that should resolve your error.

提交回复
热议问题