CA APM .NET agent fails to run and show expected application metrics

Document ID : KB000115892
Last Modified Date : 05/11/2018
Show Technical Document Details
Issue:
After a successful CA APM .NET Agent install or manual deploy of .NET Agent No Installer files, the agent is failing to execute and show the expected application metrics.
Environment:
APM 10.7
Windows 2012
Cause:
In these images from the Process Explorer utility you can see that the w3wp process is successfully loading the wily.Agent assembly but it was using a different COR_PROFILER value than what was defined in the agent installation environment variables "{5F048FC6-251C-4684-8CCA-76047B02AC98}"

Process Explorer

User-added image

The root cause is the COR_PROFILER environmental variable is being hijacked by another application e.g. MS SCOM  (Microsoft System Center Operations Manager)
Resolution:
The w3wp process was attaching the COR_PROFILER of another CLR profiler from the application MS SCOM. We had to modify the registry to remove references to the MS SCOM app.
Additional Information:

Related KB articles:
Introscope .NET Agent Troubleshooting and Best Practices

How can we install the .NET Agent for 64-bit .NET Applications on Windows Server 2008 R2 by using NoInstaller files?