简体   繁体   English

从IIS上的ASP.NET Core应用程序请求超时

[英]Request timeout from ASP.NET Core app on IIS

I make a web request to a third-party api from my ASP.NET Core application. 我从我的ASP.NET核心应用程序向第三方API发出Web请求。

  1. When app is running alone itself, request succeeds. 当应用程序单独运行时,请求成功。
  2. When app is running in IIS on the same server, request timeouts. 当应用程序在同一服务器上的IIS中运行时,请求超时。

Request is made from a Hangfire recurring job to Asana API endpoint (HTTPS) via RestSharp client. 通过RestSharp客户端从Hangfire定期作业向Asana API端点(HTTPS)发出请求。 All the own app's pages are available through IIS, but app cannot make any requests. 所有自己的应用程序页面都可以通过IIS获得,但应用程序无法提出任何请求。

Where should I look and what to debug to solve this problem? 我应该在哪里查看和调试什么来解决这个问题?

IIS behavior is driven by the web.config, I have configured to deal with request < 20 min specifying requestTimeout="00:20:00" : IIS行为是由web.config驱动的,我已经配置为处理请求<20分钟指定requestTimeout =“00:20:00”

<aspNetCore
  requestTimeout="00:20:00"
  processPath="%LAUNCHER_PATH%"
  arguments="%LAUNCHER_ARGS%"
  stdoutLogEnabled="false"
  stdoutLogFile=".\logs\stdout"
  forwardWindowsAuthToken="false">
  <environmentVariables>
    <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="staging" /> <!-- value could be "development", "staging" or "production"-->
  </environmentVariables>
</aspNetCore>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您可以从 C# 代码在 IIS 中托管的 asp.net core 2.0 中设置请求超时吗? - Can you set request timeout in asp.net core 2.0 hosted in IIS from C# code? Asp.Net Core 2.2进程内托管超时IIS - Asp.Net Core 2.2 In-Process Hosting Timeout IIS 长时间 ASP.NET 操作上的 IIS 请求超时 - IIS Request Timeout on long ASP.NET operation ASP.NET Core 5 MVC web 应用程序在部署到 IIS 后在某些页面中返回错误请求错误 - ASP.NET Core 5 MVC web app returning bad request errors in some pages after deployment to IIS 在 asp.net 核心应用程序中实现了 IHostedService,如何在没有 IIS 的第一个请求的情况下运行它? - Implemented IHostedService in an asp.net core app, How to run it without the first request on IIS? 为特定 controller ASP.Net Core MVC 设置请求超时 - Set request timeout for specific controller ASP.Net Core MVC 在 IIS 服务器上部署 ASP.NET Core 2.1 React App - Deploying ASP.NET Core 2.1 React App on IIS server 在本地 IIS 上发布 ASP.Net Core App - 找不到内容 - Publish ASP.Net Core App on local IIS - Content not found 将ASP.NET Core App部署,发布到本地IIS的问题 - Deploy,emt issue for ASP.NET Core App to local IIS 如何部署具有 IIS 授权的 ASP.NET Core / React 应用程序? - How to deploy ASP.NET Core / React app with authorization to IIS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM