从 WCF 服务调用 WCF 服务时出现异常

发布于 2024-08-09 05:55:34 字数 199 浏览 2 评论 0原文

我们有 2 个 WCF 服务 A) 托管在 IIS 上,B) 作为 Windows 服务托管。

我们正在使用 WSHttp 绑定

当我从 A 调用 B 时,我收到以下错误

防止服务中止 空闲会话过早地增加 接收服务超时 端点的绑定

有什么想法吗???

We are 2 WCF service A) hosted on IIS and B) hosted as Windows service.

We are using WSHttp binding

When i am calling B from A i am receiving the below error

To prevent the service from aborting
idle sessions prematurely increase the
Receive timeout on the service
endpoint's binding

any idea???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥醉 2024-08-16 05:55:34

这里有几点需要注意:

  • 当服务 A 调用服务 B 时,客户端使用的是服务 A 的 web.config。
  • 当服务A调用服务B时,​​可能是正在使用的应用程序池的标识
  • 您确定服务B正在运行,您可以从服务A以外的客户端调用它吗?
  • 服务B运行在哪个端口上,是那个端口被防火墙阻止了?
  • 服务B运行在哪个端口上,与IIS站点相同吗?在这种情况下,您将会崩溃,并且服务 B 将无法侦听该端口

我的猜测是,它可能是最后 2 个之一

There are several things to watch out for here:

  • When Service A calls service B, it is the web.config of service A that is being used on the client side.
  • When Service A calls service B, it may be the identity of the application pool that is being used
  • Are you sure that service B is running, can you call it from a client other than service A.
  • Which port is Service B running on, is that port blocked in the firewall?
  • Which port is Service B running on, is it the same as the IIS site? In that case you will get a crash and the service B will not be able to listen on the port

My guess is that it is probably one of the last 2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文