However, this is known as a timeout error. It means that the ASP.NET that is hosting the app has stopped responding. When the Azure web app takes so long to load, you can get the azure app service CGI error. Complaints from some users show that the azure app can suddenly crash and respond with an error message. Hosting Net Core on Azure is easy, but some issues plague it. However, the most common issue is with the versions, so you must keep it updated. This can help with the specified CGI application encountered an error problem.
What is the CGI application error?
This error can occur due to different circumstances. The CGI application error occurs when the CGI script does not get a response quickly enough from the web engine. The error pops up if you load the command for too long on the web browser with no response. Also, the CGI application error can occur due to missing UseIISIntegration in the startup code of the web host builder. The need for IISIntegration is because Azure web apps run on it. However, a missing Azure app service certificate can trigger the Azure app service CGI error.
How can I fix the specified CGI application that encountered an error?
1. Configure an Auto-heal option
Configuring Auto-heal will help it collect data and trace where the error is. This will, however, support the auto-heal fix of the issue.
2. UseIISIntegration() on the WebHostBuilder
Because Azure web apps operate on IISIntegration, it is necessary to include it in the web host builder. Include the code below:
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseKestrel()
.UseIISIntegration() // Necessary for Azure.
.UseStartup
SPONSORED
Name *
Email *
Commenting as . Not you?
Save information for future comments
Comment
Δ