.NET  

Understanding of Internet Information Services – Series I

IIS, or Internet Information Services, is a powerful web server software developed by Microsoft for Windows operating systems, designed to host websites and web applications. Starting with IIS 1.0 as a free add-on for Windows NT 3.51, it has evolved through significant versions like IIS 5.0 with Windows 2000, IIS 6.0 with Windows Server 2003, and the redesigned IIS 7.0 with Windows Server 2008. Each version enhances capabilities, providing reliable performance and security for your online presence.

History Links: Internet Information Services (IIS) - Microsoft Lifecycle | Microsoft Learn

What is an IIS server used for?

  • Website Hosting
    1. Serves static content (HTML, CSS, images).
    2. Hosts dynamic applications (ASP.NET, .NET Core, PHP).
    3. Supports intranet applications.
  • FTP Server
    1. Allows secure file uploads/downloads with FTPS.
  • SMTP Server
    1. Sends emails, typically for web app notifications.
  • Media Streaming
    1. Streams audio and video content.
  • Security Features
    1. Authentication methods (Anonymous, Basic, Windows).
    2. Authorization controls and request filtering.
    3. SSL/TLS for secure communication.
    4. IP address restrictions.
  • Management Tools
    1. IIS Manager for GUI management.
    2. Command-line tools and PowerShell for advanced tasks.
    3. Application pools for isolating apps.
  • Microsoft Integration
    1. Seamless compatibility with Windows and Microsoft products.
  • Extensibility
    1. Modular architecture for adding/removing components and features.

How to Install IIS on a Local Developer Machine and Windows Server?

Part 1. Install IIS on a Local Developer Machine (Windows 10/11)

  • Open "Turn Windows Features On or Off" - Press Win + S, type "Windows Features", and open "Turn Windows features on or off".
  • Enable IIS

In the window that opens, check.

Internet Information Services

(Optional) Expand it and enable

  • Web Management Tools > IIS Management Console
  • World Wide Web Services > Application Development Features
  • Enable .NET Extensibility, ASP.NET, CGI, ISAPI Extensions, etc., depending on what your app needs. Click OK

Windows will install the necessary files. It may take a few minutes.

  • Verify Installation
  • Open your browser and go to http://localhost. You should see the default IIS welcome page.
     IIS welcome page
    Features off

Part 2. Install IIS on a Windows Server (e.g., Windows Server 2016/2019/2022)

Using Server Manager (GUI)

  • Open Server Manager: Start > Server Manager
  • Click Add Roles and Features: This opens the Add Roles and Features Wizard
  • Choose Installation Type Select: Role-based or feature-based installation and click Next.
  • Choose Server: Select the server (usually pre-selected) and click Next
  • Select Server Roles: Check Web Server (IIS) and click Add Features

Add Features (Optional) - You can add features like .NET Framework, Web Socket Protocol, etc, and click Next.

  • Confirm and Install: Click Install and wait for the installation to complete
  • Verify Installation: Open a browser on the server and navigate to http://localhost. You should see the IIS welcome page

Post-Installation Tips

  • Open IIS Manager.
  • Press Win + R, type inetmgr, and press Enter
  • Create your first site or import an existing project
  • Set the correct Application Pool settings if you’re using .NET Core/.NET Framework
  • Add bindings if you want the app to respond to domain names or custom ports

Next Series: Introduction to IIS Site and Application Pool – Series II

Next Series: Deploying a Web Application or Web Service in IIS – Step-by-Step – Series III