-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: ANCM: Unexpected application shutdown #58939
Comments
I have the same issue with my application. DescriptionI have two websites, ASP.NET Core API and WordPress, in the same application pool. Before WordPress triggers an HTTP Error 500 OutOfProcess hosting model The processes:
The aspnetcore-debug log:
InProcess hosting model
After WordPress triggers an HTTP Error 500 OutOfProcess hosting model
The aspnetcore-debug log:
InProcess hosting model
Expected BehaviorASP.NET Core API can start again when a new request reaches to the site. .NET Version
@BrennanConroy Could you please look into this and help me troubleshoot the issue? |
I had the same setup (fcgi/php and ASP.NET Core app in the same app pool) but then created a new application pool for the ASP.NET Core app and so far I haven't seen the issue again. |
@matbech |
The application name |
@BrennanConroy |
Is there an existing issue for this?
Describe the bug
Starting with .NET 9 Preview 4 up to the current version of .NET 9 (9.0.100 with ANCM 19.0.24303.0) we are seeing unexpected application shutdowns (logged as "Application 'MACHINE/WEBROOT/APPHOST/WWW.BLA.COM/APPPOOLNAME' has shutdown.") after a certain time (usually a couple of hours). This results in the application being non-functional (503 http errors) until the IIS application pool is restarted or recycled.
The IIS application pool is configured with the following settings:
Idle time-out: 0
StartMode: AlwaysRunning.
Managed Pipeline mode: Integrated
Rapid Fail Protection - Enabled: false
OS: Windows Server 2022 (x64) and Windows Server 2025 (x64)
We have compiled the application with both, the .NET 9 Preview 3 SDK and with .NET 9.0.100 SDK with the same result when running it under a runtime / ANCM > .NET 9 Preview 3.
The issue does not happen with .NET 9 Preview 3 (runtime and ANCM). Maybe related to this issue #41340 and this commit #52807
No additional errors or informational messages (e.g. no application shutdowns due to recycle), or crash reports (WER) can be found in the event log.
The application is trivial. For illustration purpose, the simplified source code follows:
Program.cs
Startup.cs
ActivationController.cs
Expected Behavior
No shutdown of the application. Application stays alive.
Steps To Reproduce
I'm only able to reproduce this in a production environment and it takes a random interval (hours) until it happens.
Exceptions (if any)
No response
.NET Version
9.0.100
Anything else?
dotnet --info
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-preview.3.24172.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
The text was updated successfully, but these errors were encountered: