Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 5-Oct-12 4:40am
v2

1 solution

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

<endpoint>
         address="" 
         behaviorConfiguration="httpBehavior" 
         binding="webHttpBinding" bindingConfiguration="testWebHttpBinding" 
         contract="[your contract name]" />
</endpoint>


Hope this solves your problem

cheers
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900