我正在尝试更新/添加来自visual studio community 2013的网络参考,但我已经尝试了一个非常繁琐的错误,如图所示:
(在新项目中添加了Web引用以测试我是否能够添加Web引用)
这两个错误似乎都与下载wsdl的元数据时出错有关,这在以前没有发生过,因为任何原因我无法再更新/添加web引用。在浏览器中正确加载wsdl的URL,除此之外我还可以ping服务器。我在互联网上尝试了许多我喜欢的问题error downloading $metadata from webservice,但是我没有很好的结果,如果有另一个解决方案或假设可以帮助我弄清楚发生了什么,我会非常感激。
我总是尝试通过服务引用添加Web引用,但我没有工作,这就是错误所说的:
There was an error downloading 'https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl/_vti_bin/ListData.svc/$metadata'.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: Se ha forzado la interrupción de una conexión existente por el host remoto.
Se ha forzado la interrupción de una conexión existente por el host remoto
Metadata contains a reference that cannot be resolved: 'https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl'.
An error occurred while making the HTTP request to https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl. 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.
Unable to read data from the transport connection: Se ha forzado la interrupción de una conexión existente por el host remoto.
Se ha forzado la interrupción de una conexión existente por el host remoto
If the service is defined in the current solution, try building the solution and adding the service reference again.
事先非常感谢。
答案 0 :(得分:2)
尝试下载wsdl然后添加它。然后,您可以选择本地wsdl文件的路径。
答案 1 :(得分:0)
我遇到了相同的问题,并按以下步骤解决了该问题: