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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,388 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,268 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,122 questions
{count} votes