.NET Core 2.0 Azure Web App. The specified CGI application detected an error and the server terminated the process

My application works well locally, but I have an error when I deployed it to Azure Web App:

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

My application is the .NET Core 2.0 web interface without the wwwroot folder. I checked this question , the workaround does not work for me, and this applies to another version of .NET Core. My application creates an instance X509Certificate2from an array of bytes, I am sure that it does not work here. I need to dynamically manage X509Certificates - uploading a certificate to a web application is not an option.

I also found this in Microsoft Docs :

A known issue with an earlier version of Kestrel may lead to the creation of ASP.NET. A Core 1.0 application hosted in the application service is interrupted by unresponsive requests. You can also see this message: "The specified CGI application encountered an error and the server terminated the process."

This issue is fixed in Kestrel version 1.0.2. This version is included in the ASP.NET Core 1.0.3 update. To solve this problem, make sure that you are updating application dependencies to use Kestrel 1.0.2. Alternatively, you can use one of two workarounds, which are described in the ASP.NET Core 1.0 blog as slow performance on the App Service application network.

I believe that I am using the latest version of Kestrel dependencies on the nuget package:

<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />

-, , , . ? ?

Github

+4

Source: https://habr.com/ru/post/1690204/


All Articles