Pranjal Rathod

Pranjal Rathod

  • NA
  • 3
  • 2.9k

ASP.NET Core 2.x and WCF with uncompressed messages

Dec 3 2018 11:03 PM
I need make response compression disabled. I have .NET 4.5 version of web.config but I need in .NET CORE 2.x now.
 
<customBinding>
<binding name="BasicHttpBinding_Service">
<textMessageEncoding messageVersion="Soap11" />
<httpsTransport decompressionEnabled="false" />
</binding>
</customBinding>
 
I have web service which is not support compressed response and I am still get error:System.ServiceModel.ProtocolException: 'The content type application/x-gzip 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 653 bytes of the response were: '?' 

Answers (1)