Cheap Windows IIS Hosting Tutorial – Everything you should know about IIS Express

ByAlexia Pamelov

Cheap Windows IIS Hosting Tutorial – Everything you should know about IIS Express

5/5 - (1 vote) | IIS Express provides us a set of flexibility to simulate an IIS hosted environment and test the application directly from the Visual Studio.  In the previous post you have seen  how we can enable SSL in IIS Express  by just a single enabling property. In this post I am going talk about few more important things that you should as a developer. This will help you in dealing with IIS Express.

Where does the basic configuration information stored ?

The basic information related to the IIS Express are stored inside the project file (proj file)  within the property group information section.  To view it, Open the Project File in edit mode ( In this case I will strongly recomand you to use Visual Studio productivity Tool ) ; where you can edit the project file using “Power Command” as shown in the image below.


Once you have the  project file in edited mode, you can search for below configuration section, where you can see the application information related to IIS Express are set.


You can change the configuration editable values and update the project files to take the changes effects.

If your application has the SSL Enabled, IISExpressSSLPort will have the values specified for the SSL  port number.


Where is the configuration settings related to bindings and virtual directory?

Project files have the information related to the IIS Express and it’s basic settings; whereas there are several configuration files that are required to host and run a web application.  You can find all the IIS Express related files under \users\<username>\My Documents \ IISExpress\Config .

Open the “applicationhost.config” file in any text editor, and search for your web application name

As you can see this section contains the information related with the physical path of  IIS Express Virtual Directory, application pool  and the several bindings information.

The aplicationhost.config files are user specific.

Applying Multiple Bindings With IIS Express

You can add additional bindings within the “bindings” elements to access your sites using different urls.

&lt;binding protocol="http" bindingInformation="*:53294:localhost" /&gt;
&lt;binding protocol="http" bindingInformation="*:53295:my-pc" /&gt;
&lt;binding protocol="https" bindingInformation="*:44302:localhost" /&gt;

There is an additional application – IISExpressTray

When you press F5 to run the project, Visual Studio automatically launches the IIS Express and it will show up in your task-bar tray while it’s running.

You can right-click and  select the “Application”  to get the list of currently active URL’s for the current application.  To navigate, you have to click on the site URL.

Along with the hosting sites, IIS Express ( IISExpress.exe)  is the parent process of an another application “IISExpressTray.Exe”. You can launch this application by just right click on IIS Express Icon on system tray icon and then select “Show All Applications” .

Following snaps shows the overall process hierarchy of IIS Express with in Visual Studio.

Quick way to get the details of the site configurations

From the application url lists, you can select any of the url / sites ; IISExpress tray application will show you different additional details such as runtime, application path and configuration.

This is the easiest option to open the application configuration file for IIS Express.

That’s all ! Hope going forward this information will help you to work with IIS Express.

About the Author

Alexia Pamelov administrator

    Leave a Reply