处理”Http无法注册url...另一应用程序正在使用TCP端口80“异常

异常情况:

处理方法:

1.客户端的服务配置文件设置绑定的地址clientBaseAddress

 

2.在客户端代码中设置绑定的地址

WSDualHttpBinding ws = (WSDualHttpBinding)client.Endpoint.Binding;
ws.ClientBaseAddress
= new Uri(http://localhost:8000/);//设定绑定的地址

 

参考:http://www.cnblogs.com/xray2005/archive/2010/01/13/1646327.html

posted @ 2011-01-26 09:18  peter cheng  阅读(731)  评论(0编辑  收藏  举报