WCF errors

1) SvcUtil.exe http://localhost/someone.svc?wsdl

Error details: The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml;charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..

Cause:  

a. This is usually a mismatch in the client/server bindings, where the message version in the service uses SOAP 1.2 (which expects application/soap+xml) and the version in the client uses SOAP 1.1 (which sends text/xml). WSHttpBinding uses SOAP 1.2, BasicHttpBinding uses SOAP 1.1.

b. If there are some invaild markups in service's web.config, it will also raise this error.

Solutions:

a. Verify that the bindings used by the client/server are the same.

b. Application pool running as Network Service

 

2) Wait for updating...

原文地址:https://www.cnblogs.com/xixifusigao/p/2546161.html