.NET Runtime version 2.0.50727.5485 - Failed to CoCreate profiler.

Document ID : KB000045344
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

After installing the .Net agent the following error is reported in the windows event log:


".NET Runtime version 2.0.50727.5485 - Failed to CoCreate profiler."

Cause:

“Run Side by Side” .NET Agent feature allows multiple versions of CLRs inside the same process and runs them side by side, the default value is “none” which means that only the first CLR loaded will be instrumented, in this case, the server has installed 2 CLRs causing the failure, from the Agent logs:

From IntroscopeAgent.Web_Services_Hosting.log;

4/12/16 11:57:00 AM GMT+01 [INFO] [IntroscopeAgent.Agent] Agent Release 9.7.1.16 (Build 16)
4/12/16 11:57:00 AM GMT+01 [INFO] [IntroscopeAgent.Agent] Using CLR version 4.0.30319.18063
..

From IntroscopeAgent.PerfMonCollectorAgent_exe.log:
.
4/12/16 10:44:23 AM GMT+01 [INFO] [IntroscopeAgent.Agent] Agent Release 9.7.1.16 (Build 16)
4/12/16 10:44:23 AM GMT+01 [INFO] [IntroscopeAgent.Agent] Using CLR version 2.0.50727.5485

Resolution:

1. Open the IntroscopeAgent.profile, set com.wily.introscope.nativeprofiler.monitor.inprocsxs.multiple.clrs=v2,v4

2. Restart the IIS : Open the command prompt, run iisreset

3. Restart the CA Performance Collector Monitor service.