我收到错误调用wcf服务

问题描述:

我是WCF的新手。调用该服务时出现以下错误。

底层连接已关闭预计将保持活动的连接已被服务器关闭





请帮帮我:/

Hi, I'm new to WCF. I am getting the following error when calling the service.
"The underlying connection was closed A connection that was expected to be kept alive was closed in by the server"


please help me :/

需要考虑的事项如下。





1)首先检查您的服务器实例是否运行

2)检查您的客户端计算机是否能够连接到特定端口上的服务器计算机(没有防火墙问题)和客户端计算机提供了足够的权限来连接到服务器计算机

3)检查您的服务器WCF服务配置和客户端配置是否相同它们是否都是使用相同的通信方法配置。

4)正确设置超时属性。
Things to consider are as below.


1) First of all check that your server instance is runnning
2) Check Your Client computer is able to connect to the server machine on specific port( There is no firewall issue) and client machine has provided sufficient rights to connect to the server machine
3) Check that Your Server WCF Service Configuration and Client Configuration are same and they both using same communication method configured.
4) Set Timeout properties properly.