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 730 bytes of the response were:
'
Error
Error
Error
This page can't be displayed. Contact support for additional information. The incident ID is: N/A.
'.
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass1_0.b__0(IAsyncResult asyncResult)
--- End of stack trace from previous location where exception was thrown ---
at PGNAIE.Controllers.AccountController.Certificate(String id, String twGovT1) in C:\Users\6730\source\repos\pgna\PGNAIE\Controllers\AccountController.cs:line 369