WCF服务-添加服务参考错误 [英] WCF Service-Add Service Reference Error

查看:160
本文介绍了WCF服务-添加服务参考错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照以下链接中介绍的步骤创建了WCF服务.然后,创建Windows服务并安装WCF服务.已成功安装.但是,当我将WCF服务添加到测试客户端Windows窗体"项目中时,它引发错误为"TCP错误代码10061:无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8732.".

我在Google中进行搜索,发现许多与"TCP错误代码1061"相关的主题,但没有一个解决了我的问题.任何人都可以帮助解决此问题吗?
问候
链接

I have created a WCF service just following the steps presented in the following link. Then, created a Windows service and installed the WCF service. It has been installed successfully. However, it throws error as "TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8732. " when I was adding the WCF service to a Test Client Windows Form project.

I have searched in Google and found many topics related to the "TCP error code 1061" and none of them solved my issue. Can anyone help to solve this issue?
Regards
Link

推荐答案

此错误表示,找到了您尝试连接的服务器,但是由于某种原因拒绝了客户端访问.客户端正试图通过无效端口进行连接,或者它不允许远程连接或防火墙问题.

在这里查看完整的详细说明:
错误消息:TCP提供程序.分辨率 [ ^ ]
^ ]


如果需要,请按照以下说明排除故障: ^ ]
This error means, the server you are trying to connect is found, but for some reason denying the client access. Client is trying to connect through an invalid port or it does not allow remote connections or a firewall issue.

Look here for full detailed explanation here:
Error message: TCP Provider.. - Cause & Resolution[^]
MSDN Blog: (provider: TCP Provider, error: 0 - No connection..[^]


If needed, troubleshoot more following this: MSDN Blog: TCP Provider: No connection could be made because..[^]


这篇关于WCF服务-添加服务参考错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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