Home Screencasts Quick Start Case Studies API Download Order Blog*

Runtime Flow Runtime Flow

Monitoring a .NET Core web application in IIS 10

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

Create a web application

1. Run VS 2019 as administrator.

2. Select Create a new project - ASP.NET Core Web Application:

ASP.NET Core Web Application

3. Select Web Application:

Web Application

4. Select IIS in debug launch project properties:

IIS

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

Core Web Application

Configure IIS for monitoring

1. Open IIS Manager - Application Pools and find the pool name for your application:

Application Pools

2. Substitute "WebApplication1 AppPool" with your application pool name in the following two lines and run them from the admin command prompt:

%systemroot%\system32\inetsrv\appcmd.exe set apppool "WebApplication1 AppPool" /+environmentVariables.add[@start,name='CoreCLR_Enable_Profiling',value='1']
%systemroot%\system32\inetsrv\appcmd.exe set apppool "WebApplication1 AppPool" /+environmentVariables.add[@start,name='CORECLR_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 (x86)\Microsoft\Edge\Application\msedge.exe http://localhost/WebApplication1/
Customized Run for Core 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