【问题标题】:WebApi service down hosted on Azure App ServiceWebApi 服务托管在 Azure 应用服务上
【发布时间】:2020-12-06 05:23:09
【问题描述】:

我将 Web Api 托管到 azure 应用服务。我发布时一切正常。

几天后,Web Api 停止响应。但我的应用服务仍在运行。 甚至将应用程序洞察日志添加到所有代码、所有 catch 块中,即使这样也没有帮助。迄今为止没有记录异常。

检查了以下内容,但似乎没有帮助。

  • 应用服务的线程数。
  • CPU 时间。

这是我在 Web API 关闭后尝试从邮递员那里点击时出现的错误。

<html><head><title>500 - The request timed out.</title></head><body>  <font color ="#aa0000"><h2>500 - The request timed out.</h2></font>  The web server failed to respond within the specified time.</body></html>

当我重新启动我的应用服务时,Web API 开始工作,几天后又停止了。

【问题讨论】:

    标签: azure asp.net-web-api asp.net-web-api2 azure-web-app-service


    【解决方案1】:

    我认为您的应用服务由于不活动而被闲置。请在配置刀片的常规设置中设置始终为真,您可以查看链接 App service configuration.

    【讨论】:

      猜你喜欢
      • 2011-05-17
      • 2013-04-19
      • 2021-11-08
      • 1970-01-01
      • 2021-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多