AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS

Questions about YourKit .NET Profiler
Post Reply
durgeshvarde
Posts: 2
Joined: Mon Oct 03, 2022 7:42 pm

AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS

Post by durgeshvarde »

AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS.

I am using Yourkit .NET Profiler 2022.3-b106. The ASP.NET service (64-bit process) is using .NET CLR Version v4.0.30319 hosted on IIS on Windows Server 2016 Datacenter operating system.

I tried multiple options to confirm if it is an access issue, but it is not. I am an administrator on the server. Also, I ensured that no other profiler is running on the server.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS

Post by Vladimir Kondratyev »

Please try the latest version 2022.9. Most propably the problem is already resolved.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
durgeshvarde
Posts: 2
Joined: Mon Oct 03, 2022 7:42 pm

Re: AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS

Post by durgeshvarde »

I am still getting the same error with version 2022.9.b150
Ilya Kalikin
Posts: 16
Joined: Mon Jun 12, 2017 3:06 pm

Re: AttachProfiler failed: 80070002 when attempting to load the profiler for ASP.NET service hosted on IIS

Post by Ilya Kalikin »

durgeshvarde wrote: Thu Oct 06, 2022 4:54 pm I am still getting the same error with version 2022.9.b150
Did you try to run profiler "as administrator" from Windows before attach?

For your information, it is possible to directly integrate with IIS to profile ASP.NET applications: https://www.yourkit.com/docs/dotnet-pro ... al_iis.jsp

IIS profiling can be also enabled by command line:

Code: Select all

<Profiler Installation Directory>\bin\YourKitTools.bat iis-enable
IIS integration is a preferred method over attach, because attach has some limitations.
Post Reply