title: there was an error downloading $metadata from web reference
body: <p>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:</p>
  
  <p><a href="https://i.stack.imgur.com/hl0pn.png" rel="nofollow noreferrer">Add web reference image</a></p>
  
  <p><a href="https://i.stack.imgur.com/MBVb0.png" rel="nofollow noreferrer">Update web reference image</a></p>
  
  <p>(Adding web reference is been used in new project to test if I was able to add the web reference)</p>
  
  <p>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 <a href="https://stackoverflow.com/questions/36276946/error-downloading-metadata-from-webservice">error downloading $metadata from webservice</a>, 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.</p>
  
  <p>I always tried by adding the web reference by Service reference, but i didn't work, this is what the error said:</p>
  
  <p><code>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.</code></p>
  
  <p>Thanks a lot beforehand.</p>