WCF Error: the client and service bindings may be mismatched?

前端 未结 1 850
广开言路
广开言路 2021-01-21 00:03

let see server config and client config. Then help me find difference between these configs!!

Client config




        
相关标签:
1条回答
  • 2021-01-21 00:23

    In order to use the customized binding you need to specify bindingConfiguration attribute on the client and server side. Like this:

    Server side:

    <endpoint address=""
              binding="wsHttpBinding"
              bindingConfiguration="WSHttpBinding_Config"
              contract="AdminCentral.Business.Web.ICommandInvoker">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    

    Client side:

    <endpoint address="!!__!_server_address_!__!!"
              binding="wsHttpBinding"
              bindingConfiguration="WSHttpBinding_Config"
              contract="AdminCentral.Business.Web.ICommandInvoker">
    </endpoint>
    
    0 讨论(0)
提交回复
热议问题