“Microsoft .NET 9.x.x Windows Server Hosting” isn’t a built-in Windows Server feature. What you need to install is the ASP.NET Core Hosting Bundle for .NET 9.
Here’s the recommended approach:
- Check supported OS First, make sure your server is supported. .NET 9 is supported on Windows Server 2016 and later (Windows Server 2016, 2019, 2022, and 2025). Older or out-of-support Windows Server versions aren’t listed as supported platforms for .NET 9. While installation may still succeed, these scenarios aren’t covered by Microsoft support and behavior isn’t guaranteed.
- Download the .NET 9 Hosting Bundle Go to the official .NET 9 download page and select the ASP.NET Core Runtime - Hosting Bundle: https://dotnet.microsoft.com/en-us/download/dotnet/9.0. This bundle installs:
- .NET 9 Runtime
- ASP.NET Core Runtime
- ASP.NET Core Module (ANCM) required for IIS
- Run the installer as Administrator Execute the
dotnet-hosting-9.x.x-win.exeinstaller on your Windows Server and complete the setup. - Ensure IIS is installed Confirm that the Web Server (IIS) role is installed. If IIS was added after the hosting bundle, rerun or repair the hosting bundle so the ASP.NET Core Module is correctly registered. IIS hosting guidance: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-10.0
- Restart IIS After installation, restart IIS to make sure the ASP.NET Core Module is fully loaded:
iisreset- Verify installation Run the following command to confirm the runtimes are installed:
You should seedotnet --list-runtimes.NET 9.0andMicrosoft.AspNetCore.App 9.0listed.
- ASP.NET Core Runtime
- .NET 9 Runtime
For more details, the official Hosting Bundle documentation is here:
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin