我的应用程序在 120 t0 130 秒内超时,我尝试了以下操作。1. web.config 更改
<configuration>
<system.web>
<httpRuntime targetFramework="4.5.1" executionTimeout="500" />
</system.web>
</configuration>
添加了 sql 超时 EF Core
command.CommandTimeout = 100;
在 IIS 上更改
连接超时 900
在控制器上为 int.mex 值添加了 asynctimeout 属性
将 httpclient 连接超时添加到 4 分钟
我有两个应用程序 1. asp net web 调用 asp net cocre api
都托管在 IIS 上都具有相同的设置