Microsoft IIS 10.0 – Testing the uploaded web page

Initial Server Setup with CentOS 8

In this recipe, we are going to test web application pages developed in framework version 4 and uploaded into our custom virtual directory VDapplication pool. Web application pages for the lower version, framework 2.0, have been uploaded to the virtualdirectory virtual directory.

We will also test a normal HTML page using a custom virtual directory.

Getting ready

To step through this recipe, you will need a running IIS 10.0 instance with a virtual directory created as well as a website application.

How to do it…

  1. Open Server Manager on Windows Server 2016. Click on the Tools menu and open IIS Manager.
  2. Expand the IIS server ( WIN2016IIS). You will get a list of Application Pools and Sites under the Connections pane. You will get three websites listed, which we uploaded in previous recipe: mysite.com, v2mysite.com, and v4mysite.com.
  3. Go to the Sites folder, expand mysite.com, and click on virtualdirectory. This is a simple virtual directory with the default application pool.

 

 

  1. Go to the Actions panel and click on Browse. You will get the http://mysite.com/virtualdirectory URL:
  1. Now let’s test both custom virtual directory sites we had created in previous steps for VDapplication and virtualdirectory. You can access both site URLs through any browser, but in my case I used Internet Explorer.
  2. Open Internet Explorer and type the URL http://mysite.com/vdapplication in the address bar. You will get the website application:
  1. In the same way, you can test mysite.com, which has a different version of the application pool, 2and3.5AppPool, which we have already configured in the application pool configuration section.
  2. Open Internet Explorer, and type the URL http://mysite.com/virtualdirectory in the address bar. You will get the website application:

How it works…

We have tested a different .NET CLR version with the appropriate framework version of web application pages, developed in framework 4 and uploaded to the VDapplicationpool virtual directory. We also tested web application pages for framework version 2.0 and uploaded them to virtualdirectory.

We also tested for normal HTML pages in the virtualdirectory virtual directory without an application pool.

Comments are closed.