Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 bytes o

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

We are facing a strange issue in Production. not in other environments.

If we Invoke Organization Service in custom code and if service returns any exception then instead of getting actual error message we are receiving as below.

The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 bytes of the response were: 'The page cannot be displayed because an internal server error has occurred.

for example, we have written a console in order to assign owner to a activity pointer actually Service has to 

The ‘Assign’ method does not support entities of the type ‘Activity pointer’ but we are getting like above custom message.

we are not facing any issue with Plugins or work flows. 

We are facing issue with our Custom Application which is hosted in IIS.

Thank You..

 

  • Ga PA Profile Picture
    Ga PA 5 on at
    RE: The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 byt

    I have this same issue.  Our Dev and Test captures the right exception (InvalidPluginExecutionException) but pre-production and production are giving the following soap error message

    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 bytes of the response were: 'The page cannot be displayed because an internal server error has occurred.'.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 byt

    Hi Kawinski,

    Yes we are using load balancer. i tried placing entry for ip address of our web server in host file but still no luck. we are able to connect to Service but not getting error message properly.

  • G Kawinski Profile Picture
    G Kawinski 380 on at
    RE: The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 byt

    Are you using a load balancer?  If you are, you can try bypassing it by setting the IP of one of the web servers in your hosts file.  Then see if the problem persists.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans