Configure VirSec RASP profiler and Site24x7 .NET agent on the same machine

How to configure VirSec RASP APM profiler and Site24x7 .NET agent on the same machine

You can install both the Site24x7 APM Insight .NET Agent and VirSec RASP profiler on the same machine to monitor your .NET and .NET Core applications.

Steps to configure the .NET agent with VirSec

By default, both and Site24x7 use the same environment variables, as listed in the below. Follow the steps below to resolve this conflict.

 VirSec
 Site24x7
 COR_ENABLE_PROFILING=1
 COR_ENABLE_PROFILING=1
 COR_PROFILER={8E2B38F2-7355-4C61-A54F-434B7AC266C0}
 COR_PROFILER={989D151B-3F31-482E-926F-2E95D274BD36}
 COR_PROFILER_PATH_64=C:\Program Files (x86)\Virsec\iae-dnet\bin\dotnetprofiler.dll


1. After installing both the VirSec probe and the Site24x7 .NET Agent, environment variables are created in the registry key Environment under the following paths:
  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS

2. Edit the Environment key in the specified registry paths and replace them with the following key values in both paths:
  1. VSP_AdditionalProfiler_x64_Path=C:\Program Files (x86)\APM Insight\APM Insight .NET Agent\DotNetAgent\x64\ClrProfilerAgent.dll
  2. VSP_AdditionalProfiler_x86_Path=C:\Program Files (x86)\APM Insight\APM Insight .NET Agent\DotNetAgent\ClrProfilerAgent.dll
  3. VSP_AdditionalProfiler_CLSID={989D151B-3F31-482E-926F-2E95D274BD36}

3. Finally, run the IISRESET command.
4. Restart the APM Insight .NET agent service.
5. Perform some transactions.

Steps to Configure the .NET Core Agent with VirSec

1. After configuring both the Site24x7 .NET Core Agent and the VirSec RASP Profiler, you will find environment variables created in the registry key Environment under the following paths:
  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS

2. To properly configure the environment, edit the Environment key in the specified registry paths and add the following key values to both paths:
  1. VSP_AdditionalProfilerCore_x64_Path=<AgentInstalledPath>\Site24x7DotNetCoreAgent\x64\ClrProfilerAgent.dll
  2. VSP_AdditionalProfilerCore_x86_Path=<AgentInstalledPath>\Site24x7DotNetCoreAgent\x86\ClrProfilerAgent.dll
  3. VSP_AdditionalProfilerCore_CLSID={9D363A5F-ED5F-4AAC-B456-75AFFA6AA0C8}

3. After making these changes, run the IISRESET command and begin performing transactions.