.NET Core 2.1 Azure Web App: The specified CGI application encountered an error and the server terminated the process
Asked Answered
M

1

7

I host my ASP.NET .NET Core 2.1 project in Azure Web App service. I recently upgraded to 2.1 (From 2.0) and I started getting these errors:

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

The application typically runs just fine for an hour or so and then suddenly it crashes and all responses return this error. I have to restart it to make the error go away. It was working fine with .NET Core 2.0.

I saw similar issues posted on SO that turned out to be related to earlier Kestrel versions. It shouldn't be the case for me. My project references Microsoft.AspNetCore.App 2.1.1 which has the latest Kestrel version.

This is my production environment, please help.

Milissa answered 16/7, 2018 at 13:28 Comment(3)
Did you find a solution for this?Wachter
@Wachter nope, I downgraded back to 2.0. Will wait for a bit until I upgrade again.Milissa
Possible duplicate: #33645742Kymberlykymograph
W
-1

So finally, I saw there were few extensions added to my azure app service and post deleting the extensions under "Custom" my service is running as expected.

Wachter answered 5/10, 2018 at 9:39 Comment(2)
Could you elaborate please.Milissa
@Milissa most likely removing the extensions caused the app to restart which likely cleared the issue. :(Kymberlykymograph

© 2022 - 2024 — McMap. All rights reserved.