Sachin Kainth
Sachin Kainth

Reputation: 46740

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding

I am maintaining a large project that uses a lot of WCF services and when certain users log in to the site they get this error

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: ' '.

I don't know what the cause of this could be, nor where to look to fix it. Any ideas?

Upvotes: 1

Views: 12588

Answers (1)

Sachin Kainth
Sachin Kainth

Reputation: 46740

The problem was that the remote WCF service had an error and the response was of type text/html, which was different from the response type of a success message. Just for anyone who has this sort of issue in the future.

Upvotes: 5

Related Questions