Click here to Skip to main content
11,503,151 members (77,807 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WCF Services
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 4:09am
Edited 5-Oct-12 4: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)



Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2015
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