My own Core CLR profiler not loading into worker process

Duraikannu Jeyamani 1 Reputation point
2021-09-16T06:06:17.193+00:00

I am using Windows server 2016 os and am trying to profile .NET Core web applications that runs on .NET Core 2.1 using CoreCLR Profiler.
I have developed my clrprofiler and output profiler dll pasted into application binary location.
I have set the environment values CORECLR_PROFILER , CORECLR_ENABLE_PROFILING and CORECLR_PROFILER_PATH.

Here's the my web.config,
132557-web.jpg

My clrprofiler.dll not loaded into the worker process (w3wp.exe | dotnet.exe - checked both in-process and out of process)

I confirmed my profiler dll not loaded into worker process by checking with processexplorer. exe and by running command **

Tasklist /M /FI "PID eq 11132" | find "ClrProfiler.dll"

** (11132 - process id of worker process)

Where I missed here, how can I load my own core clrprofiler into dotnet process | w3wp ?

It would be much helpful if I get some correct direction to troubleshoot this.

Thanks in advance.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,429 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,137 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,461 Reputation points
    2021-09-16T14:36:48.033+00:00

    Hello @Duraikannu Jeyamani ,

    Thank you for your question.

    I recommend that you take a look at the article below and see why this error may be happening and how to solve it:

    https://learn.microsoft.com/en-us/dotnet/framework/deployment/initialization-errors-managing-the-user-experience

    If the answer was helpful, please don't forget to vote positively or accept as an answer, thank you.

    0 comments No comments