ASP.Net AJAX WCF Error: Cannot process the message because the content type application/json; charset=UTF-8 was not the expected type

Last Reply 3 months ago By pandeyism

Posted 3 months ago

Hi  team,

I created an application with the help of the below code. Everything is the same as the article

Call (Consume) WCF Service (SVC) using AJAX in ASP.Net

But I am getting below error while sending the data

415 (Cannot process the message because the content type 'application/json; charset=UTF-8' was not the expected type 'text/xml; charset=utf-8'.)

Could you please assist on this