Over a million developers have joined DZone.

What Is IIS Express? Code Examples for Installation and Tutorials

DZone's Guide to

What Is IIS Express? Code Examples for Installation and Tutorials

In this article, we discuss the latest version of IIS, IIS Express, and how devs can you use it to monitor and test the performance of their sites and apps.

· Performance Zone ·
Free Resource

Built by operators for operators, the Sensu monitoring event pipeline empowers businesses to automate their monitoring workflows and gain deep visibility into their multi-cloud environments. Get started for free today.

Previously, when developers built and tested ASP.NET sites and applications, they used one of these two servers: Visual Studio’s ASP.NET Development Server or the Windows’ IIS Web Server. Each option has its pros and cons. Then, an increasing number of developers expressed their desire to have a server that exhibits the characteristics of a user-friendly ASP.NET Development Server along with the features included in IIS 7.

This demand resulted in IIS Express, currently in version 10.0, which offers features from both servers. Plus, you can configure it for Prefix to take advantage of our powerful code profiling solution.

A Definition of IIS Express

Anyone who uses ASP.NET understands the importance of IIS logs in managing performance; check out this post for some insights on how to read and customize those logs for basic ASP.NET performance monitoring. But if you don’t want to install IIS on your development workstation, IIS Express is a solid, lightweight alternative that’s self-contained and designed to make it easy for developers to build and test websites.

It also offers the power of IIS 7. The server is integrated into WebMatrix and does not ship with IIS Manager for IIS 7. Instead, it is managed from within WebMatrix or from the icon. The Microsoft WebMatrix is an integrated suite of tools to manage ASP.NET and PHP development. Although, you can also install it independently.

How It Works

It works with both Visual Studio and Visual Web Developer. In addition, it runs on Windows XP or higher. Plus, it does not require an administrator account nor any code changes. In fact, you can use it with all forms of ASP.NET applications. Moreover, you can build and test applications using it in Visual Studio, but it needs to be installed separately and manually launched from the command line. Here’s how:

1. Open a command prompt.

2. Locate the installation folder, then run this command:

 cd \Program Files\IIS Express

3. To view the usage string, run this command:


4. Select /config to either run your site from a configuration file or use /path to run your site from an application folder.

The configuration file is located in the %userprofile%\Documents\IISExpress\config directory or %userprofile%\My Documents\IISExpress\config directory. To run it from the default.config file, type this command:

issexpress /site:Website1 

If you want to disable the system tray, execute this command:


It’s designed for developers who do not want to install IIS on their development computers. Nonetheless, it does come with a few performance and security limitations that do not make it ideal as a production web server. Many developers use it when running and testing applications with Visual Studio. It does enable a full web-server feature set, including:

  • SSL
  • URL Rewrite
  • Media support

Managing Applications

If you take a look at the System Tray, you can see which applications are running. If you aren’t able to view the icon in your System Tray, click on Hidden Icons, then right-click Hello World, http://localhost:5791/ . Here, you can look at the port number for each application, to use in a URL. You can also click Show All Applications in the context menu to view the Logi applications running, along with their details.

Another option is to click Start, All Programs, Microsoft WebMatrix. Then, click My Sites. Select the site you want to open and click OK.

IIS Express vs. IIS

Because it’s based on IIS 7, it supports every core feature. Still, there are differences, such as how worker processes are facilitated. Here’s a look at a few notable differences between the two.

IIS Express:

  • Does not have a WAS.
  • Gives the user complete control over application activation and deactivation.
  • Is included with WebMatrix and can be installed separately.
  • Allows standard users to complete most tasks (without administrator user rights).
  • Is ideal for development but not production.
  • Does not support FTP.
  • Has system tray support.

IIS 7:

  • Ships with the OS.
  • Requires administrator user rights to run WAS.
  • Is designed for developers and production.
  • Supports FTP.

Benefits of IIS Express

Many developers find that it enables an easier process for building, running, and testing web applications. This is especially true since it works with all versions of ASP.NET and supports all forms of ASP.NET applications. Plus, you can utilize the server’s features without having to change any code. Not to mention, you get a full web server feature-set, so you can build and run your applications just as they would work on a production web server.

As you can see, it’s quite user-friendly and comes with almost all of the features of IIS 7. The primary caveat is that it should not be used as a production server.

Download our guide to mitigating alert fatigue, with real-world tips on automating remediation and triage from an IT veteran.

performance ,iis ,asp.net development

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}