WCF Services Installation
This guide will explain how to use the Hdiv Agent with WCF services.
Installing the Agent¶
Follow the Windows installation guide (https://hdivsecurity.com/docs/installation/dotnet-setup-windows/)
Instrumentate the service¶
After installing the agent in Windows, the agent must instrumentate the WCF service. In order to do that, some additional steps are required.
1) Make sure that your service is stoped. If it is not, run the following command: net stop {YourServiceName}
2) Open Regedit.
3) Go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services{Your WCF service name}
4) Create a Multi String value (REG_MULTI_SZ) called Environment.
5) Enter the following values:
COR_ENABLE_PROFILING=0x1 COR_PROFILER={1adbf8d7-8774-4733-aa10-4376ba3bd37a} COR_PROFILER_PATH_32={HDIV installation directory}\agent\x86\Hdiv.AST.Clr.Profiler.dll COR_PROFILER_PATH_64={HDIV installation directory}\agent\x64\Hdiv.AST.Clr.Profiler.dll
6) Launch your service by running the following command: net start {YourServiceName}
7) At this point, the agent should instrumentate the WCF service.