How to fix .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance Error.

Bhushan Mendhe 0 Reputation points
2023-06-28T08:04:35.5566667+00:00

Hello,

I am seeing this error in the event logs:

.NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{2EB6DCDB-3250-4D7F-AA42-41B1B84113ED}'. HRESULT: 0x80040154. Process ID (decimal): 28340. Message ID: [0x2504].

The environment variables are being set properly. The COR_ENABLE_PROFILING is set to 1 and the COR_PROFILER variable is being read correctly.

The application uses the .NET Framework profiler. I can see the CLSID in the registry but it gives me this error again and again.

I am fairly new to this so I am not able to resolve it.

Can anybody help?

Developer technologies | .NET | .NET Runtime
Developer technologies | C++
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.