我在IIS7上托管了WCF服务,它已经开始“强制关闭连接”。
例如:当请求被发送时,应用程序开始处理它,同时连接关闭,并出现以下异常
An error occurred while receiving the HTTP response to https://############/#########.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
终结点正在使用SSL (TLS1.0)。
如果请求持续时间少于30秒,则会适当地检索响应,但如果请求持续时间超过30秒,则连接将被强制关闭(请求将继续在端点上执行并完成,但永远不会检索到响应)。
发布于 2017-01-24 13:03:18
您需要配置maxReceivedMessageSize和,并根据您的要求将其设置为您希望support.And receiveTimeout的最大字节数。示例:
<binding name="Your Binding Name" receiveTimeout="00:01:00" maxReceivedMessageSize="" />
https://stackoverflow.com/questions/41828652
复制相似问题