【问题标题】:Error when invoking WCF service from the client从客户端调用 WCF 服务时出错
【发布时间】:2011-03-09 15:57:32
【问题描述】:

我的 VS.Net 2008 解决方案中有一个 WCF 服务项目和客户端项目。 运行客户端时,出现此错误:

无法连接到 http://localhost:8000/Services/TestService。 TCP错误代码10061:无法建立连接,因为目标机器主动拒绝它127.0.0.1:8000

我在这里错过了什么?如何确保我的服务正在运行?

【问题讨论】:

  • 您的服务很可能没有运行或服务主机未能打开。

标签: wcf


【解决方案1】:

您可以使用WCF test client 来测试您的服务。

【讨论】:

    【解决方案2】:

    这可能是由于DisableLoopbackCheck 注册表设置造成的吗?

    WCF: Calling WCF service hosted in IIS on the same machine as client throws authentication error

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多