Click here to Skip to main content
12,621,424 members (28,546 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET WCF service
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
v2

1 solution

Rate this: bad
 
good
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

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

Hope this solves your problem

cheers
  Permalink  
v2

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 | Mobile
Web02 | 2.8.161128.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2016
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