Click here to Skip to main content
13,290,595 members (66,750 online)
Rate this:
Please Sign up or sign in to vote.
Can you please help about the below error.

Error Message:
The content type text/plain of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 0 bytes of the response were: ''.
Posted 5-Oct-12 5:09am
Updated 5-Oct-12 5:40am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I guess, it is a problem with config file - Endpoint binding
The binding should be wsHttpBinding

Could you please have a quick look into the binding value you set in endpoint

         binding="webHttpBinding" bindingConfiguration="testWebHttpBinding" 
         contract="[your contract name]" />

Hope this solves your problem


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171207.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100