内容类型text/html;响应消息的 charset=utf-8 与绑定的内容类型不匹配

Sac*_*nth 1 wcf

我正在维护一个使用大量 WCF 服务的大型项目,当某些用户登录该网站时,他们会收到此错误

The content type text/html; charset=utf-8 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 1024 bytes of the response were: ' '.
Run Code Online (Sandbox Code Playgroud)

我不知道这可能是什么原因,也不知道在哪里可以解决它。有任何想法吗?

Sac*_*nth 5

问题是远程 WCF 服务出现错误,响应类型为 text/html,与成功消息的响应类型不同。仅供将来遇到此类问题的任何人使用。