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.
Download the complete code from
http://skydrive.live.com
.The sample file name is WcfServiceCMM.rar. My MSN ID is chanmmn@hotmail.com.
Pingback: How to configure WCF Service to wsHttpBinding binding | Chanmingman's Blog
Great post. I was checking continuously this weblog and I am inspired! Very useful information specifically the final section
I take care of such info much. I was looking for this particular information for a long time. Thank you and good luck.
I tried this but hasn’t helped me..