Home Screencasts Quick Start Case Studies API Download Order Blog*

Runtime Flow Runtime Flow

Monitoring a web application in IIS 10

This guide describes how to create a web application in Visual Studio, deploy it to IIS 10 and monitor its execution with Runtime Flow.

Installation

1. Install Windows 10 (this guide uses Windows 10 Pro v1703):

About Windows

2. Install IIS (select ASP.NET 4.7 in Windows Features):

IIS features

3. Install Visual Studio 2017 (this guide uses VS 2017 Community v15.3.2 with the ASP.NET and web development workload):

Visual Studio 2017 installer

4. Install Runtime Flow (this guide uses RuntimeFlow_172.msi).

5. Install the Runtime Flow extension for VS 2017 (this guide uses RuntimeFlow2017_171.vsix).

Create a web application

1. Run VS 2017 as administrator.

2. Select File - New - Project - Web - ASP.NET Web Application:

ASP.NET Web Application

3. Select Web Forms:

Web Forms

4. Select Local IIS server in project properties:

Local IIS

5. Start the application (Start Without Debugging - Ctrl+F5):

Web Application

Configure IIS for monitoring

Run the following two lines from the admin command prompt (or run iis-10-runtime-flow.cmd as administrator):
%systemroot%\system32\inetsrv\appcmd.exe set apppool "DefaultAppPool" 
		/+environmentVariables.add[@start,name='Cor_Enable_Profiling',value='1']
%systemroot%\system32\inetsrv\appcmd.exe set apppool "DefaultAppPool" 
		/+environmentVariables.add[@start,name='COR_PROFILER',value='{C967CF3F-79BF-49a5-A10F-D5B269DB9E54}']

Configure Runtime Flow for monitoring

1. Set a command to start the web application in the Runtime Flow Customized Run dialog and uncheck the Stop monitoring when the command completes option:

"C:\Program Files\Internet Explorer\iexplore.exe" http://localhost/WebApplication1/
Customized Run for Web Application

2. Set Module == WebApplication1.dll in the monitoring Options dialog:

Monitoring options for Web Application

Start monitoring

1. Click Restart in the IIS manager - Actions - Manage Server to close all running w3wp.exe processes:

IIS manager

2. Click Run in the Runtime Flow Customized Run dialog. The flow of the application execution should appear:

Flow