Skip to content

NET10 + IIS (InProcess with Preload Enabled) causes Windows to hang during shutdown #65436

@BlaineM-SeriouslyRAD

Description

@BlaineM-SeriouslyRAD

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When using .NET 10 with IIS (InProcess with Preload Enabled = True), Windows hangs during shutdown / restart because IIS AspNetCore Module V2 gets stuck in a stop / start loop.

Expected Behavior

When using .NET 10 with IIS (InProcess with Preload Enabled = True), Windows should not hang during shutdown / restart.

Steps To Reproduce

See super simple repo: https://github.com/BlaineM-SeriouslyRAD/20260215-aspnetcore-issue/tree/main

The readme has the steps to reproduce.

Exceptions (if any)

Event Viewer (Informational Messages):
IIS AspNetCore Module V2 Event IDs 1032 and 1033 infinite loop
https://github.com/BlaineM-SeriouslyRAD/20260215-aspnetcore-issue/blob/main/Event%20Viewer.png

.NET Version

10.0.103

Anything else?

Windows Versions Affected

  • Windows 11 25H2 (OS Build 26200.7623)
  • Windows Server 2022 21H2 (OS Build 20348.4773)
  • Windows Server 2019 1809 (OS Build 17763.8389)

Known Workarounds

  1. Disable Preload (unworkable)
  2. Change hosting model to outofprocess (web.config)
  3. Revert to .NET 8 (net10.0 -> net8.0 in csproj and web.config)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions