WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错

      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服务引用。就能够成功。
 
 
相关文章
相关标签/搜索