WCF无法连接到远程服务器 [英] WCF unable to connect to remote server

查看:106
本文介绍了WCF无法连接到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的服务器中托管了我的wcf服务,当我尝试在我的应用程序中添加服务引用时出现此错误..请帮助我识别



I have hosted my wcf service in my server,and when i try to add the service reference in my application am getting this error..please help me to identify

There was an error downloading 'http://118.139.161.77:81/Service1.svc'.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 118.139.161.77:81
Metadata contains a reference that cannot be resolved: 'http://118.139.161.77:81/Service1.svc'.
There was no endpoint listening at http://118.139.161.77:81/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 118.139.161.77:81
If the service is defined in the current solution, try building the solution and adding the service reference again.

推荐答案

是您的托管在该服务器上的服务?端口81是否可用?



转到您的Web浏览器并粘贴http://118.139.161.77:81/Service1.svc您必须看到测试客户端页面。



希望它有所帮助。
Is your service hosted on that server? Is the port 81 available?

Go to your web browser and paste http://118.139.161.77:81/Service1.svc you must see a test client page.

Hope it helps.


大家好,

我有同样的问题。



我看到测试客户端,但是当我添加服务引用时,我收到错误:



Hi all,
I have same problem.

I see test client, but when I add service reference, I get error:

Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 203.162.42.199:8080
Metadata contains a reference that cannot be resolved:





如何解决?

谢谢。



How can I fix it?
Thanks.


这篇关于WCF无法连接到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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