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.

Developer technologies | .NET | .NET Runtime
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,931 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

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.