添加服务参考时出现错误

编程入门 行业动态 更新时间:2024-10-24 21:28:55
本文介绍了添加服务参考时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我从VS 2013添加服务引用时遇到了错误.这很奇怪,我可以在VS 2015中添加与服务引用相同的URL.

下载"[URL] .asmx/_vti_bin/ListData.svc/$ metadata"时出错. 基础连接已关闭:发送中发生意外错误. 身份验证失败,因为远程方已关闭传输流. 元数据包含无法解析的引用:'[URL] .asmx'. 向[URL] .asmx发出HTTP请求时发生错误.这可能是由于在HTTPS情况下未使用HTTP.SYS正确配置服务器证书.这也可能是由于安全绑定不匹配造成的 在客户端和服务器之间. 基础连接已关闭:发送中发生意外错误. 身份验证失败,因为远程方已关闭传输流. 如果服务是在当前解决方案中定义的,请尝试构建解决方案并再次添加服务引用.

There was an error downloading '[URL].asmx/_vti_bin/ListData.svc/$metadata'. The underlying connection was closed: An unexpected error occurred on a send. Authentication failed because the remote party has closed the transport stream. Metadata contains a reference that cannot be resolved: '[URL].asmx'. An error occurred while making the HTTP request to [URL].asmx. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server. The underlying connection was closed: An unexpected error occurred on a send. Authentication failed because the remote party has closed the transport stream. If the service is defined in the current solution, try building the solution and adding the service reference again.

关于Sai

推荐答案

嗨Sai,

由于您的问题与WCF更加相关,因此我将其移至相应的论坛,以便您获得专业的解答.

As your issue is more related to WCF, I will move it to corresponding forum for you to get a professional answer.

感谢您的理解.

最诚挚的问候

抓取

更多推荐

添加服务参考时出现错误

本文发布于:2023-11-16 18:42:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1606839.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:出现错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!