异常情况:
处理方法:
1.客户端的服务配置文件设置绑定的地址clientBaseAddress
2.在客户端代码中设置绑定的地址
WSDualHttpBinding ws
=
(WSDualHttpBinding)client.Endpoint.Binding;
ws.ClientBaseAddress = new Uri(http: // localhost:8000/); // 设定绑定的地址
ws.ClientBaseAddress = new Uri(http: // localhost:8000/); // 设定绑定的地址
参考:http://www.cnblogs.com/xray2005/archive/2010/01/13/1646327.html