【问题标题】:The content type text/html; charset=utf-8 of the response message does not match the content type of the binding - ASP.NET: HTTP Error 500.19 – Error内容类型 text/html;响应消息的 charset=utf-8 与绑定的内容类型不匹配 - ASP.NET: HTTP 错误 500.19 - 错误
【发布时间】:2016-11-02 10:54:09
【问题描述】:

我收到错误“请求实体太大错误 - WCF 服务”。所以我在 web.config 中添加了以下几行。

<binding maxReceivedMessageSize="2147483647" 
 maxBufferSize="2147483647"
 maxBufferPoolSize="2147483647">
 <readerQuotas maxDepth="32"
 maxArrayLength="2147483647"
 maxStringContentLength="2147483647"/>
 </binding>

添加 DEV 后运行正常。我已将其发送到 PRODUCTION 中。我收到一个错误

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

【问题讨论】:

    标签: asp.net wcf


    【解决方案1】:

    If 表示已提供错误页面,而不是来自 WCF 服务的响应。最好检查您正在运行 WCF 客户端的用户是否有权访问该资源。正确检查您的端点绑定 (wsHttpBinding)

    【讨论】:

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