A set of technologies in the .NET Framework for building web applications and XML web services.
Hi,
To publish an ASP.NET Core app to IIS, you’ll need to make sure the server is prepared and then deploy your app.
1. Install IIS (if not already installed):
- Open Control Panel > Programs > Programs and Features > Turn Windows features on or off.
- Check the box for Internet Information Services (IIS) and install.
- Also make sure .NET Framework 4.x is installed (required by IIS Manager).
2. Install the .NET Core Hosting Bundle:
- This installs the .NET Runtime, ASP.NET Core Runtime, and the IIS ASP.NET Core Module.
- Check it here: .NET Hosting Bundle.
3. Publish your application:
- From Visual Studio: use Publish > Folder > IIS to generate your deployment files.
- From command line: run
dotnet publish -c Release.
4. Configure IIS:
- Open IIS Manager, add a new Website, and point the physical path to your published folder.
- Make sure the Application Pool is set to No Managed Code.
I suggest checking this guide out as it's very complete and step by step on how to host ASP.NET Core application on IIS: Complete step-by-step guide (Dev.to)
Best regards, feel free to reach out if you encounter any problem