Microsoft IIS 10.0 – Testing different versions of a website

Initial Configurations of Windows server 2019

In this recipe, we are going to test the v3.5 application pool we created. Also, we will test the default v4.0 application pool.

We are going to test the v4.0 and v3.5 frameworks. We have created both the files and already uploaded them to wwwroot folder.

Getting ready

In this recipe, we need the already configured v4.0 and v3.5 frameworks. For the web pages, we’ve already created the v4.0 and v3.5 framework application files. One by one, we will test the localhost URL and see the result. We will also test across versions of frameworks and web application files.

How to do it…

  1. We are going to test the v4.0 application, which is DefaultAppPool. You already uploaded the web application files to the wwwroot folder in the previous recipe.
  2. Open Internet Explorer, type http://localhost/ in the address bar, and press Enter. You will see the following screen:
  1. Now we are going to test the v3.5 application, which is 2and3.5AppPool. You already uploaded the web application files to the wwwroot folder in the previous recipe.
  2. Open Internet Explorer, type http://localhost/ in the address bar, and press Enter. You will see this page:
  1. We’ve got the result. We have created both the application files to demonstrate the running application pool version.

How it works…

In this recipe, we tested both application pools framework versions. Each application pool can be used for one or several websites.

We can check what happens if our application pool is v3.5 and we host a web application made for v4.0:

We get an error here. At the bottom of page, you can see the suggestion, which is Version Information: Microsoft .Net Framework Version 2.0.50727.8745; ASP.NET Version 2.0.50727.8745 and your web application framework is v4.5.

You must make sure to upload the supported .NET web application version and check the application pool associated with the website. Both should be the same framework version in order for the web page to run.

Comments are closed.