Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET core WCF CONTENT TYPE ERROR

$
0
0

Hi To All,

    I am working on ASP.NET core recently. I am connecting to WCF web service using connection service extension. I successfully added the reference of my service in my project. The problem is when i am calling a service i am getting following error

ProtocolException: The content type text/html; charset=UTF-8 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 1 bytes of the response were: '<'.  

I have no knowledge on where i have to change the binding settings in ASP.NET core. 

could any one please help me in solving this issue.This would be great helpful for me.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>