You might receive the message
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: ‘http://localhost:1091/Service1.svc’.
Content Type application/soap+xml; charset=utf-8 was not supported by service http://localhost:1091/Service1.svc. 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.