WCF添加服务引用错误 [英] WCF Add Service Reference Error

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

问题描述

我已按照YouTube上的示例创建了WCF服务。在我尝试向客户端添加服务引用之前,一切都很好。我收到此错误消息:



I have created a WCF service by following an example on YouTube. Every was fine until I tried to add a service reference to my client. I got this error message:

There was an error downloading 'http://localhost:8090/whatever/?wsdl/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8090
Metadata contains a reference that cannot be resolved: 'http://localhost:8090/whatever/?wsdl'.
There was no endpoint listening at http://localhost:8090/whatever/?wsdl 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
No connection could be made because the target machine actively refused it 127.0.0.1:8090
If the service is defined in the current solution, try building the solution and adding the service reference again.





有谁知道我哪里出错了?



谢谢你高级



Does anyone have any idea where I'm going wrong?

Thanks In Advance

推荐答案

元数据'。
无法 to connect to the 远程 服务器
连接 made 因为 target machine active 被拒绝 127 0 0 1:8090
元数据 包含 参考 不能 已解决: 'http: // localhost:8090 / whatever /?wsdl'。
was no endpoint list ening http: // localhost:8090 / whatever /?wsdl可以接受该消息。这通常是由错误的地址或SOAP操作引起的。有关详细信息,请参阅InnerException(如果存在)。
无法 connect 远程 服务器
connection made 因为 target machine 主动 拒绝 127 0 0 1:8090
如果 service < 当前 解决方案尝试 < span class =code-leadattribute> building 解决方案 添加 服务 参考 再次
metadata'. Unable to connect to the remote server No connection could be made because the target machine actively refused it 127.0.0.1:8090 Metadata contains a reference that cannot be resolved: 'http://localhost:8090/whatever/?wsdl'. There was no endpoint listening at http://localhost:8090/whatever/?wsdl 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 No connection could be made because the target machine actively refused it 127.0.0.1:8090 If the service is defined in the current solution, try building the solution and adding the service reference again.





有谁知道我哪里出错了?



谢谢你高级



Does anyone have any idea where I'm going wrong?

Thanks In Advance


Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8090
If the service is defined in the current solution, try building the solution and adding the service reference again.





此异常(以及其他一些异常)可能会产生误导 - 如果连接被拒绝,您有时会遇到此异常,但您也可能因为与错误无关的原因而看到它表面上被报道。



您需要打开WCF配置编辑器中的跟踪选项(客户端和服务器,如果适用),使用跟踪选项重现异常打开,然后查看已生成的跟踪日志。





http://msdn.microsoft.com/en-us/library/ms733025(v = vs.110).aspx [ ^ ]


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

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