【问题标题】:The content type text/html; charset=utf-8 of the response message does not match the content type of the binding内容类型 text/html;响应消息的charset=utf-8 与绑定的内容类型不匹配
【发布时间】:2012-06-18 14:53:18
【问题描述】:

我正在维护一个使用大量 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: ' '.

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

【问题讨论】:

标签: wcf


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2011-07-12
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 2015-03-02
    • 1970-01-01
    • 2017-07-14
    • 2011-07-11
    • 1970-01-01
    相关资源
    最近更新 更多