WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
2015-07-10 10:59
766 查看
WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
当我们在客户端添加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服务引用的时候出错,信息如下
下载“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服务引用。就可以成功。
相关文章推荐
- C#中的基本数据类型
- Cocos2d-x 脚本语言Lua介绍
- Java接口中尽量避免使用数组
- windows 32 控制台自定义消息
- JS实现 分享视频中-->点击button(copy),复制对应网址
- git 一般的使用操作
- 用到ListActivity中 , @+id/android:list"和"@android:id/list"的写法
- time_h && struct tm
- java 使用io流对象实现文件复制
- easyui-datagrid多笔删除的BUG
- Ubuntu 中文输入法的安装
- C++中公有继承、保护继承、私有继承的区别
- 自定义android dialog
- Java - Difference between throw and throws in Exception handling
- mysql数据库迁移
- from config import config
- go 语言学习笔计之结构体
- 设计师也不能开口跪,看看你会不会谈客户!
- 数据可视化 d3js学习之简单的饼图
- vc 添加消息及消息处理函数