error downloading $metadata from webservice

Ct.Manoj picture Ct.Manoj · Mar 29, 2016 · Viewed 10.6k times · Source

I am trying to add web reference when adding web reference url in windows application it shows error like this. how do i solve it?

There was an error downloading 'http://www.example.com/BackEndWebService/LoginWebService.asmx/$metadata'.

The request failed with the error message:

$metadata Web Service method name is not valid.

Answer

Farzad Jafarizadeh picture Farzad Jafarizadeh · May 25, 2016

I had the same issue the other day when tried to update the web reference and managed to fix it by adding ?WSDL at the end. That should work.

enter image description here