【问题标题】:Wcf Service, I'm getting this error: The content type text/html; charset=utf-8Wcf 服务,我收到此错误:内容类型 text/html;字符集=utf-8
【发布时间】:2020-04-05 16:38:35
【问题描述】:

Wcf 服务,我收到此错误:内容类型 text/html;响应消息的charset=utf-8 与绑定的内容类型不匹配

【问题讨论】:

  • 请在您的问题中添加更多信息。添加有问题的代码以及完整的异常消息。

标签: c# wcf service


【解决方案1】:

当您尝试从 https 上的 WCF 服务获取响应时,您可能会收到此错误,但您的绑定在应用程序 Web 配置上设置为 basicHttpBinding。将您的绑定从 <basicHttpBinding> 更改为 <basicHttpsBinding>

它可能会解决你的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-16
    • 1970-01-01
    • 1970-01-01
    • 2011-07-11
    • 2017-09-01
    • 2017-11-25
    • 2014-09-18
    • 2011-07-12
    相关资源
    最近更新 更多