How to profile ASP.NET application without IIS?

Questions about YourKit .NET Profiler
Post Reply
georgepayton
Posts: 3
Joined: Sat Jan 27, 2007 5:16 pm

How to profile ASP.NET application without IIS?

Post by georgepayton »

Greeings Yourkit

I was wonder how to profile an ASP.NET application that's using the Visual Studio built in web server, rather than IIS. When pressing the Profile button in Visual Studio, the web app starts, but YourKit UI can't connect.

Thanks :)
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello,

Unfortunately, profiling of the built in server currently is not supported.

We'll add the support in the next version.

As a workaround, you can try putting the following keys to the registry before launching the built in server:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"COR_ENABLE_PROFILING"=dword:00000001
"COR_PROFILER"="{D72CCA6A-149B-41A4-943A-74E9C55A1FC9}"

Please note that the GUID is profiler version dependent. This one works with version 2.0.5 of the profiler.

Please don't forget to set "COR_ENABLE_PROFILING" to zero after you connected to the profiled application from the profiler UI, otherwise all following .net applications will be started with the profiler as well.
georgepayton
Posts: 3
Joined: Sat Jan 27, 2007 5:16 pm

Post by georgepayton »

Thanks Anton.

I think I will wait for the next version for now :)
Post Reply