Search code examples
c#wsdlmetadataweb-reference

there was an error downloading $metadata from web reference


I'm trying to update/add a web reference from visual studio community 2013 but I have experimented a very tedious error as shown in the images:

Add web reference image

Update web reference image

(Adding web reference is been used in new project to test if I was able to add the web reference)

both errors seems to be related to the fact that there is an error downloading the metadata of the wsdl, this was not happening before, for any reason I cannot update/add the web reference any more. The URL where the wsdl is being loaded correctly in a browser, besides I also can ping the server. I have tried many things that I found on internet like this question error downloading $metadata from webservice, but I didn't have good results, if there is another solution or assumption that help me to figure out what is happening I will be very thankful.

I always tried by adding the web reference by Service reference, but i didn't work, this is what the error said:

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.

Thanks a lot beforehand.


Solution

  • Try to download the wsdl and then add it. You can then choose the path to you local wsdl file.