本文介绍了WCF添加服务引用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已按照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 serverNo connection could be made because the target machine actively refused it 127.0.0.1:8090Metadata 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 serverNo connection could be made because the target machine actively refused it 127.0.0.1:8090If 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推荐答案 有谁知道我哪里出错了? 谢谢你高级Does anyone have any idea where I'm going wrong?Thanks In AdvanceUnable to connect to the remote serverNo connection could be made because the target machine actively refused it 127.0.0.1:8090If 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添加服务引用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 09:55