Azure上托管的.net Framework MVC Web应用程序上的更新请求超时

问题描述 投票:0回答:1

我在azure上托管了一个MVC .NET Framework(4.5)Web应用程序,该应用程序使用ARR来实现对外部API的反向代理。

似乎无论我如何尝试,长时间运行的请求都会在发出消息2分钟后返回502:

The specified CGI application encountered an error and the server terminated the process.

我在web.config中设置了此设置

  <system.web>
    <httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
    <compilation debug="false" targetFramework="4.5.2">
  </system.web>

并且在天蓝色的站点根目录中进行此转换:

<?xml version="1.0"?>
<configuration  xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <system.applicationHost>
    <webLimits xdt:Transform="SetAttributes(connectionTimeout)" 
               connectionTimeout="00:05:00" />
  </system.applicationHost>
</configuration>

我已验证applicationHost.config在服务器上设置了webLimit connectionTimeout,并重新启动了webapp。但是,我STILL 2分钟后得到502。我也可以直接击中端点而不会在2分钟后超时,但是通过反向代理,它每次都会在2分钟后停止。

我可能缺少什么超时设置?

.net azure model-view-controller arr
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.