loading...

Microsoft IIS 10.0 – Hosting different versions of a .NET website

How to Install MySQL 8.0 on Ubuntu 18.04

In this recipe, we are going to host a .NET v2.0-supported web page. We will change the property of the Default Web Site. We will upload the web page to the default wwwroot directory.

Getting ready

We already have the v2.0 and v3.5 framework versions installed on IIS 10.0 Server. The v4.0 .NET web page we created should be ready. You must have administrative privileges.

How to do it…

  1. Open IIS Manager and click on Default Web Site.
  2. In the Actions pane, click on Basic Settings… and then click on the Select… button, highlighted in the next figure:
  1. The application pool window will pop up. Click on the Application pool: drop-down menu, select 2and3.5AppPool under Application Pools, and click on OK to finish this step.
  1. Now, in the site properties, you will see the v2.0 application pool associated with the Default Web Site:
  1. Next, right-click on Default Web Site, click on E xplore, and you will get the wwwroot directory, where you have to upload the v3.5 .NET web files:
  1. We have thus uploaded the v3.5 files to the wwwroot directory.

How it works…

In this recipe, we changed the application pool property from v4.0 to v2.0 .NET. We had already uploaded our v3.5 .NET files to the wwwroot directory, which is associated with Default Web Site.

Once you access the Default Web Site URL, your .NET application files will be processed by the selected application pool.

Comments are closed.

loading...