0

在本地环境中使用 WCF 时,一切正常。

但是,当使用托管在某个外部位置(Azure 等)上的 WCF 时,对于持续时间超过 1 分钟的请求过程,我收到错误消息:

System.TimeoutException: 'The request channel timed out while waiting for a reply after 01:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.'

WebException: The remote server returned an error: (504) Gateway Timeout.

此错误在 1 分钟后显示,而不是在 1 小时后显示。

该服务正在使用 wsHttpBinding。

知道这里可能有什么问题吗?

4

0 回答 0