Share via

Web Application ASP.NEt

Sochivy Chet 5 Reputation points
2025-08-29T07:16:37.8933333+00:00

how to deploy web application Asp.net with c# on windows server IIS

Developer technologies | ASP.NET | ASP.NET Core

2 answers

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 6,785 Reputation points Microsoft External Staff Moderator
    2025-08-29T10:49:58.4933333+00:00

    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

    1 person found this answer helpful.

  2. SurferOnWww 5,931 Reputation points
    2025-08-29T07:36:47.77+00:00

    Please read the following Microsoft document:

    Publish an ASP.NET Core app to IIS

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.