WCF Contract Name 'IMyService' could not be found?

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

    yes @Garry you are right. contract in endpoint should be fully qualified name

    <endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBinding"      name="MyService" bindingName="basicHttpBinding" bindingNamespace="http://my.test.com"  contract="Namespace.IMyService">
    
    0 讨论(0)
提交回复
热议问题