Skip to content

Update IIS

damiancosmoschapman edited this page Aug 29, 2023 · 22 revisions

Home / Update / IIS

This documentation shows how to update Web applications in IIS when migrating from .NET Framework 4.X.X to .NET 6.

Prerequisites:

  1. Download hosting bundle for .NET6 IIS:

https://download.visualstudio.microsoft.com/download/pr/df42b901-8ce2-4131-941a-b3fa094ff3d8/556da65f7a2f6164bf3df932e030898a/dotnet-sdk-6.0.408-win-x64.exe

  1. Run the executable to install the hosting bundle.

  1. Create a directory for the website (i.e. the physical path, see below) and then create the website.

image

  1. Open a command prompt and cd to the physical path of the website. Create public and private directories. Make hard links from the public and private directories to the server directory using the commands:

    mklink /j public server

    mklink /j private server

  2. Add Authentication for public i.e. Anonymous Authentication Enabled and ASP.NET Impersonation Disabled:

image

  1. Add Authentication for private i.e. Anonymous Authentication Disabled and ASP.NET Impersonation Enabled:

image

  1. Create a new application pool with the .NET CLR Version: No Managed Code for the public hard link.

image

  1. Select Advanced Settings for the application pool and change the identity from ApplicationPoolIdentity to a custom account:

image

  1. Add a custom account, for example, TEST_DOMAIN/testUser where TEST_DOMAIN is the domain of the user and testUser is the user for the application pool:

image

  1. Change the Maximum Worker Processes from 1 to 0:

image

  1. Repeat steps 5. to 8. for the creation a new application pool with the .NET CLR Version: No Managed Code for the private hard link.

  2. Add the user used in the Identity of the application pools to the Performance Monitor Users Group:

image

  1. Check that Site Binding for https on port 443 has the appropriate SSL Certificate:

image

Clone this wiki locally