1

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?

Vitek Karas MSFT
  • 13,130
  • 1
  • 34
  • 30
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
  • 1
    I guess the authentication is failing for those users – VJAI Jun 18 '12 at 15:23
  • 1
    Check this thread http://stackoverflow.com/questions/5263150/the-content-type-text-html-charset-utf-8-of-the-response-message-does-not-match – VJAI Jun 18 '12 at 15:25

1 Answers1

5

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.

Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304