1

我的应用程序在 120 t0 130 秒内超时,我尝试了以下操作。1. web.config 更改

<configuration>
    <system.web>
        <httpRuntime targetFramework="4.5.1" executionTimeout="500" />
    </system.web>
</configuration>
  1. 添加了 sql 超时 EF Core

    command.CommandTimeout = 100;

  2. 在 IIS 上更改

    连接超时 900

  3. 在控制器上为 int.mex 值添加了 asynctimeout 属性

  4. 将 httpclient 连接超时添加到 4 分钟

我有两个应用程序 1. asp net web 调用 asp net cocre api

都托管在 IIS 上都具有相同的设置

4

1 回答 1

0

requestTimeout="00:10:00" web.config 中缺少此项

这会改变一切,请确保保留所需的其他更改。

于 2018-10-29T21:00:20.320 回答