The .NET Common Language Runtime (CLR) only allows one profiler to access the profiling API of a process at any given time. If another profiler is installed on the system, the New Relic profiler will not instrument any applications. More information about the enviroment requirements for .NET CLR profiling can be found on MSDN.
To avoid a profiler conflict, fully remove the other profiler from the environment by following this procedure:
- Check for profiler conflicts.
- If necessary, compare the registry keys to the Process Explorer by using Microsoft PowerShell or the command line.
Exception: Follow the specific troubleshooting procedures for conflicts with Microsoft's System Center Operations Manager (SCOM).
Check for profiler conflicts
To see if there are any profiler conflicts:
- Run Process Explorer as administrator.
- Find your apps process by right clicking on it and selecting properties.
- Select the Environment tab.
Verify that the New Relic CLSIDs are included in the w3wp.exe, service, or non-IIS app environment details:
Compare registry keys to Process Explorer
If the conflicting profiler has been disabled and there still is an issue, compare the registry keys to the Process Explorer to see which profiler is present: On the machine where you are experiencing this issue, check the WAS and W3SVC REG for IIS apps, or check your service/non-IIS app keys.
|To check registry keys with this...||Do this...|
If using Microsoft PowerShell, execute the following commands:
(Get-Item -Path HKLM:\SYSTEM\CurrentControlSet\services\WAS).GetValue("Environment") (Get-Item -Path HKLM:\SYSTEM\CurrentControlSet\services\W3SVC).GetValue("Environment")
If using cmd, do the following for either WAS and W3SVC REG or for your service/non-IIS app. Here is an example for an IIS application:
Here are some commonly reported profiler conflicts. This is not an exhaustive list of .NET profilers, as any program that uses the .NET profiling API may cause conflicts with the New Relic .NET profiler.
|Profiler name||Profiler identifier|
|Diagnostic Policy Service||555908d1-a6d7-4695-8e1e-26931d2012f4|
|Microsoft App Insights||