Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net WCF配置文件:为什么在绑定部分需要clientBaseAddress?_.net_Wcf - Fatal编程技术网

.net WCF配置文件:为什么在绑定部分需要clientBaseAddress?

.net WCF配置文件:为什么在绑定部分需要clientBaseAddress?,.net,wcf,.net,Wcf,服务客户端的WCF配置中有三个部分: 查看绑定=>clientBaseAddress 为什么我们需要指定回调地址? 这个字段是必需的吗? 为什么.NET无法确定客户端的地址? 这是否意味着我可以指定位于其他计算机上的客户端端点 <configuration> <system.serviceModel> <client> <endpoint address= </client> <bindings&

服务客户端的WCF配置中有三个部分: 查看绑定=>clientBaseAddress

为什么我们需要指定回调地址? 这个字段是必需的吗? 为什么.NET无法确定客户端的地址? 这是否意味着我可以指定位于其他计算机上的客户端端点

<configuration>
  <system.serviceModel>
    <client>
      <endpoint address=
    </client>
    <bindings>
      <wsDualHttpBinding>
        <binding name=
                 clientBaseAddress=
                 maxBufferPoolSize="2147483647"
                 maxReceivedMessageSize="2147483647"
        </binding>
      </wsDualHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name=>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>


由于您使用的是wshttpdualbinding,如果您在Windows XP上运行,则需要ClientBaseAddress。如果你不使用XP,你应该可以不使用它

有关更多信息,请参见此处: