我收到错误调用wcf服务 [英] i am getting error calling wcf service

查看:61
本文介绍了我收到错误调用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.


这篇关于我收到错误调用wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆