WCF分布式开发常见错误解决(1):添加服务引用出错
2009-03-15 22:09
651 查看
当我们在客户端添加WCF服务引用的时候出错,信息如下
下载“http://localhost:8001/WCFService”时出错。
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
Metadata contains a reference that cannot be resolved: 'http://localhost:8001/WCFService'.
Could not connect to http://localhost:8001/WCFService. TCP error code 10061: 由于目标机器积极拒绝,无法连接。 127.0.0.1:8001.
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
If the service is defined in the current solution, try building the solution and adding the service reference again.
解决办法:
1.查看防火墙设置。有没有打开服务端口,比如8001,没有的话添加服务端口为安全端口;
2.检查服务托管进程是否启动,这个情况一般是针对自定义宿主来托管服务的情况,运行服务托管程序。
重新添加WCF服务引用。就可以成功。
下载“http://localhost:8001/WCFService”时出错。
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
Metadata contains a reference that cannot be resolved: 'http://localhost:8001/WCFService'.
Could not connect to http://localhost:8001/WCFService. TCP error code 10061: 由于目标机器积极拒绝,无法连接。 127.0.0.1:8001.
无法连接到远程服务器
由于目标机器积极拒绝,无法连接。 127.0.0.1:8001
If the service is defined in the current solution, try building the solution and adding the service reference again.
解决办法:
1.查看防火墙设置。有没有打开服务端口,比如8001,没有的话添加服务端口为安全端口;
2.检查服务托管进程是否启动,这个情况一般是针对自定义宿主来托管服务的情况,运行服务托管程序。
重新添加WCF服务引用。就可以成功。
相关文章推荐
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- WCF分布式开发常见错误(3):客户端调用服务出错:You have tried to create a channel to a service that does not support .Net Framing
- WCF分布式开发常见错误(3):客户端调用服务出错
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误解决(7):Cannot have two operations in the same contract
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at
- [问题]通过IIS宿主发布WCF服务,客户端添加服务引用出错的解决办法
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
- 配置Android开发环境常见错误解决办法(陆续添加)“your project contains error(s),please fix them before running your application”.
- WCF分布式开发常见错误(26):Authentication failed because the remote party has closed the transport stream.
- II7 承载的WCF服务,在VS中添加引用出错
- WCF分布式开发常见错误(4):could not be found DataContract
- WCF 在VS中,添加服务引用,地址输入http://ip/Service.svc,点击前往,提示错误,内容如下:
- WCF服务部署到IIS上,然后通过web服务引用方式出现错误的解决办法