代码之家  ›  专栏  ›  技术社区  ›  Diego Arturo

从web引用下载$元数据时出错

  •  3
  • Diego Arturo  · 技术社区  · 8 年前

    我正在尝试更新/添加来自visual studio社区2013的web引用,但我尝试了一个非常乏味的错误,如图所示:

    Add web reference image

    Update web reference image

    这两个错误似乎都与下载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.

    事先非常感谢。

    2 回复  |  直到 8 年前
        1
  •  2
  •   Roelant M    8 年前

        2
  •  0
  •   B--rian Optider    5 年前

    我遇到了同样的问题,解决方法如下:

    1. 我参加了最新的Web服务项目。
    2. 在Windows资源管理器中取消勾选该项目属性的只读标志,然后单击“保存”。
    3. 在Visual Studio中打开项目并重新生成解决方案。
    4. 在使用Web服务的Project中,更新Web服务的Web引用或删除Web引用并再次添加。