You might receive the message
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: ‘
Content Type application/soap+xml; charset=utf-8 was not supported by service
. The client and service bindings may be mismatched.
The remote server returned an error: (415) Unsupported Media Type.
If the service is defined in the current solution, try building the solution and adding the service reference again
like the picture below.
One of the possibility is the service name in your Web.config
does not match the namespace in your class file.
Make sure the names are the same then try again.