【问题标题】:application timeout in 120 - 130 seconds aspnet mvc应用程序超时 120 - 130 秒 aspnet mvc
【发布时间】:2018-09-23 06:00:25
【问题描述】:

我的应用程序在 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 上,都具有相同的设置

【问题讨论】:

  • 只是澄清一下:在你尝试了一切之后,你还有超时问题吗?
  • 很遗憾,
  • CommandTimeout = 100 120-130,不是吗?
  • 是的,我有 500 秒的时间,那是为了告诉我使用的方法
  • 是针对一个特定查询还是针对多个查询?您是否有机会使用链接服务器?

标签: sql-server asp.net-mvc iis ef-core-2.0 asp-net-core-spa-services


【解决方案1】:

requestTimeout="00:10:00" 这在 web.config 中没有

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-09-28
    • 1970-01-01
    • 2018-11-29
    • 2015-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多