Profiling asp.net on IIS 6

Hi guysEager to try to profile a dot.net application we have written. It's running on Windows2003 Server with IIS6. I'm not able to attach to any process on this box, neither locally or remote. The process box is empty, even though I have several sites running Framwork 4, and others running framwork 2.I don't see a single post regarding this issue, so either people are not using this combination at all, or it's just working out of the box for everyone but me.Moving same kind of setup to a IIS 7 server works fine.What should I look for? The IUSER_<machinename> has read access to the bin folder of dottrace. I'm logged in as a member of admin group.Hope you can help meregardsLars Meldgård
0
11 comments

Hello Lars,
Please check that dotTrace and your IIS application has the same rights level: as far as I remember, IIS is always started "as administrator", so try to launch dotTrace "as administrator" as well.
Please let me know if it doesn't help.

0
Avatar
Permanently deleted user
I am launching application as administator (I have logged in as administrator on the box.The "World Wide Web Publishing Server" is running as "LOCAL SYSTEM"Also it funny, because the dotTrace.exe is not available in the list either. On the 2012 server I'm trying - the dotTraceapplication is listed.
0

lars_meldgaard wrote:

I am launching application as administator...

Do you mean the application you're profiling or dotTrace?

...I have logged in as administrator on the box...

This is not enough unfortunately. Please right-click on dotTrace's .exe file (or on dotTrace in Start Menu) and select "Run as administrator".

0
Avatar
Permanently deleted user

I mean the dot-trace application. The IIS is runing localsystem, and uses IUSER_<machinename> as impersonation.

In Windows Server 2003 there is no such thing as "Run as Adminsitrator". The UAC was not invented then.

I can right-click and select "run as..." then I can enter administrator account information, but that gives the same result.

Lars

0

Thanks for your patience! So if the problem is not the rights level, could you please give me more details:
1. what exact version of dotTrace do you have? It's available in Help -> About.
2. please open Windows Event Viewer and check that there're no errors like "failed to load profiler". If there are any, please send me the details.
3. in process explorer for each running (when your app is working) w3wp process view which user owns it and send me the names of this users.
4. get dotTrace's core logs; here's the guide, but please enable also MetaDataGt checkbox after step 6.

0
Avatar
Permanently deleted user
(sry: Your webpage strips my post of linefeeds -> difficult to read)1) I'm using the latest version. Just downloaded 5.3.1114.1382) No events at all from dottrace3) On the server I have 10 w3wp.exe service. They are all running either SYSTEM or NETWORK SERVICE service. It's a production server so I can't turn them off individually.I tried to change the identity on the Applicationpool to the same login as the login i'm using. Still not showing any processes.4) This is the trace: Not much going on since i cannot start the trace. I have been hitting the refresh button to see if we got any output:23:06:00.568: Thread:1: [JetDispatcher] Thread <NULL>:1 created an Avalon marshaller.23:06:00.677: Thread:1: [JetDispatcher] Thread <NULL>:1 pwned.23:06:03.631: Thread:1: [JetEnvironment] IApplicationDescriptor::JetEnvironment::Products++ 0^1: JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor.23:06:04.943: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]++ ^: JetBrains.Application.Env.Components.SuspendResumeProductCanBeStarted (ACK).23:06:04.943: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]++ ^: JetBrains.UI.Application.LicenseCheckComponent (ACK).23:06:04.943: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]++ ^: JetBrains.UI.License.UITimeBombComponent (ACK).23:06:05.099: Thread:1: [LCC for dotTrace] Evaluation check ok23:06:05.099: Thread:1: [LCC for dotTrace] Save new license. oldEdition: Professional, newEdition: Professional23:06:05.177: Thread:1: [RunsProducts] IApplicationDescriptor::RunsProducts::ProductsToRun++ 0^1: JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor.23:06:05.224: Thread:1: [RunningProducts] KeyValuePair`2::RunsProducts::ProductContainersNonComposed++ 0^1: “[JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor, 'Product(dotTrace)' (JetBrains.Application.Components.CatalogueComponentContainer`1[JetBrains.Application.ShellComponentAttribute])]”.23:06:05.599: Thread:7: [JetDispatcher] Thread FileSystemTrackerCommit:7 created an Avalon marshaller.23:06:05.599: Thread:7: [JetDispatcher] Thread FileSystemTrackerCommit:7 pwned.23:06:05.740: Thread:1: [FST] TryInitFileSystemWatcher - ok23:06:05.959: Thread:1: [FST] TryInitFileSystemWatcher - ok23:06:06.068: Thread:9: [JetDispatcher] Thread SettingsChangeDispatch:9 created an Avalon marshaller.23:06:06.068: Thread:9: [JetDispatcher] Thread SettingsChangeDispatch:9 pwned.23:06:06.771: Thread:1: dotTrace Performance 5.3.2 Version=5.3.1114.138, Built=2013-05-08T01:15:16, Configuration=“DotTraceApplication Professional PublicMode”23:06:06.927: Thread:1: [MW] OnWmActivate Attached.23:06:07.209: Thread:1: Unused action handlers for action 'ShowThemedIconsToolWindow'23:06:07.209: Thread:1: Unused action handlers for action 'Expand'23:06:07.209: Thread:1: Unused action handlers for action 'Collapse'23:06:07.209: Thread:1: Unused action handlers for action 'CopyLayerToLayer'23:06:07.209: Thread:1: Unused action handlers for action 'FocusMonitor'23:06:07.209: Thread:1: Unused action handlers for action 'SettingsLayersDialogToolbar.AddLayer'23:06:07.209: Thread:1: Unused action handlers for action 'SettingsLayersDialogToolbar.ImportFrom'23:06:07.209: Thread:1: Unused action handlers for action 'DumpToolWindowState'23:06:07.209: Thread:1: Unused action handlers for action 'TestUpdatesXslt'23:06:07.209: Thread:1: Unused action handlers for action 'WindowManager.ActivateRecentTool'23:06:07.209: Thread:1: Unused action handlers for action 'WindowManager.CloseRecentTool'23:06:07.209: Thread:1: Unused action handlers for action 'CreateThreadTab'23:06:07.209: Thread:1: Unused action handlers for action 'FlushAdjustments'23:06:07.209: Thread:1: Unused action handlers for action 'OpenByNodeOffset'23:06:07.209: Thread:1: Unused action handlers for action 'ToggleBacktracesMode'23:06:07.209: Thread:1: Unused action handlers for action 'DebugInfo'23:06:07.209: Thread:1: Unused action handlers for action 'DebugCheckSigtree'23:06:07.209: Thread:1: Unused action handlers for action 'DebugCheckSnapshotStructure'23:06:07.209: Thread:1: Unused action handlers for action 'DebugDumpFoldContent'23:06:07.209: Thread:1: Unused action handlers for action 'FindByNodeOffset'23:06:07.209: Thread:1: Unused action handlers for action 'LineLevelProfiling'23:06:07.209: Thread:1: Unused action handlers for action 'RemoveMethodFromFilterPattern'23:06:07.209: Thread:1: Unused action handlers for action 'RemoveClassFromFilterPattern'23:06:07.209: Thread:1: Unused action handlers for action 'ThrowException'23:06:07.209: Thread:1: Unused action handlers for action 'GotoNextRecursiveInstance'23:06:07.209: Thread:1: Unused action handlers for action 'GotoPrevRecursiveInstance'23:06:07.209: Thread:1: Unused action handlers for action 'OpenSpecial'23:06:07.209: Thread:1: Unused action handlers for action 'GroupListMenu'23:06:07.209: Thread:1: Unused action handlers for action 'Navigate'23:06:07.209: Thread:1: Unused action handlers for action 'AdjustTimeGroup'23:06:07.209: Thread:1: Unused action handlers for action 'TestText1'23:06:07.209: Thread:1: Unused action handlers for action 'TestText2'23:06:07.209: Thread:1: Unused action handlers for action 'TestText3'23:06:07.209: Thread:1: Unused action handlers for action 'TestText4'23:06:07.209: Thread:1: Unused action handlers for action 'TestText5'23:06:07.209: Thread:1: Unused action handlers for action 'TestText6'23:06:07.209: Thread:1: Unused action handlers for action 'TestText7'23:06:07.209: Thread:1: Unused action handlers for action 'TestText8'23:06:07.271: Thread:1: [UserActivityMonitor] Boolean::HavePendingSwitch: <N/A> -> False.23:06:07.287: Thread:1: [UserActivityMonitor] Boolean::(HavePendingSwitch,IsApplicationActive).And: <N/A> -> False.23:06:07.287: Thread:1: [UserActivityMonitor] Boolean::HaveSwitchAndActiveDeferred: <N/A> -> False.23:06:09.396: Thread:1: [FST] TryInitFileSystemWatcher - ok23:06:09.896: Thread:1: OneTimeInitializationManager: doing one time initialization23:06:10.224: Thread:1: [RunningProducts] KeyValuePair`2::RunsProducts::ProductContainersComposed++ 0^1: “[JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor, 'Product(dotTrace)' (JetBrains.Application.Components.CatalogueComponentContainer`1[JetBrains.Application.ShellComponentAttribute])]”.23:06:11.349: Thread:1: [GetCursorPos] Calling.23:06:11.474: Thread:1: [UserActivityMonitor] Boolean::IncomingUserContextSwitchDetected: fired True.23:06:11.474: Thread:1: [UserActivityMonitor] Boolean::HavePendingSwitch: False -> True.23:06:11.474: Thread:1: [UserActivityMonitor] Boolean::(HavePendingSwitch,IsApplicationActive).And: False -> True.23:06:13.474: Thread:1: [UserActivityMonitor] Boolean::HaveSwitchAndActiveDeferred: False -> True.23:06:13.474: Thread:1: [UserActivityMonitor] Boolean::HavePendingSwitch: True -> False.23:06:13.474: Thread:1: [UserActivityMonitor] Boolean::(HavePendingSwitch,IsApplicationActive).And: True -> False.23:06:13.474: Thread:1: [UserActivityMonitor] Boolean::UserContextSwitch: fired True.23:06:15.474: Thread:1: [UserActivityMonitor] Boolean::HaveSwitchAndActiveDeferred: True -> False.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:20.052: Thread:1: [GetCursorPos] Calling.23:06:21.396: Thread:1: [ConfigActivate] #1 Make selection empty23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.506: Thread:1: [GetCursorPos] Calling.23:06:21.677: Thread:1: [GetCursorPos] Calling.23:06:21.677: Thread:1: [GetCursorPos] Calling.23:06:21.709: Thread:1: [GetCursorPos] Calling.23:06:21.709: Thread:1: [GetCursorPos] Calling.23:06:21.771: Thread:1: [GetCursorPos] Calling.23:06:21.771: Thread:1: [ConfigActivate] #2 HostParameters: <?xml version="1.0" encoding="utf-8"?> <HostParameters type="LocalHostParameters" />23:06:21.787: Thread:1: [ConfigActivate] #2 Set selection23:06:21.787: Thread:1: [ConfigActivate] #2 Start processing23:06:21.802: Thread:12: [ConfigActivate] #2 Connecting23:06:21.802: Thread:1: [GetCursorPos] Calling.23:06:21.802: Thread:1: [GetCursorPos] Calling.23:06:21.818: Thread:1: [GetCursorPos] Calling.23:06:21.818: Thread:1: [GetCursorPos] Calling.23:06:21.849: Thread:12: Local SysTools v5.3.1114.138 loaded23:06:21.865: Thread:12: [BridgeInfo] Local configuration by name detected23:06:21.881: Thread:12: [BridgeInfo] Listen address: 127.0.0.123:06:21.881: Thread:12: [BridgeInfo] Bridge address: 127.0.0.123:06:21.927: Thread:12: [ConfigActivate] #2 Stored23:06:21.927: Thread:12: [ConfigActivate] #2 Set selection23:06:22.412: Thread:15: Starting console app: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsWecomox.tmp" l23:06:22.443: Thread:15: Console app exited with code [1]: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsWecomox.tmp" l23:06:22.506: Thread:1: [PFC] Subscribed to activation for JetBrains.CommonControls.Validation.WindowlessControlView.23:06:28.474: Thread:1: [PFC] Subscribed to activation for JetBrains.CommonControls.Validation.WindowlessControlView.23:06:29.599: Thread:1: [GetCursorPos] Calling.23:06:32.943: Thread:1: [GetCursorPos] Calling.23:07:07.224: Thread:1: [GetCursorPos] Calling.23:07:10.271: Thread:1: [GetCursorPos] Calling.23:07:13.943: Thread:1: [GetCursorPos] Calling.23:07:15.552: Thread:1: [PFC] JetBrains.CommonControls.Validation.WindowlessControlView was disposed of.23:07:23.990: Thread:14: Starting console app: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsTebuqyq.tmp" l23:07:24.006: Thread:14: Console app exited with code [1]: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsTebuqyq.tmp" l23:07:29.537: Thread:1: [GetCursorPos] Calling.23:07:29.927: Thread:1: [ConfigRemove] #3 HostParameters: <?xml version="1.0" encoding="utf-8"?> <HostParameters type="LocalHostParameters" />23:07:29.927: Thread:1: [ConfigRemove] #3 Make selection empty23:07:30.021: Thread:1: [PFC] Subscribed to activation for JetBrains.CommonControls.Validation.WindowlessControlView.23:07:30.037: Thread:1: [PFC] Subscribed to activation for JetBrains.CommonControls.Validation.WindowlessControlView.23:07:30.068: Thread:1: [ConfigActivate] #4 HostParameters: <?xml version="1.0" encoding="utf-8"?> <HostParameters type="LocalHostParameters" />23:07:30.068: Thread:1: [ConfigActivate] #4 Set selection23:07:30.084: Thread:1: [ConfigActivate] #4 Start processing23:07:30.084: Thread:13: [ConfigActivate] #4 Connecting23:07:30.084: Thread:13: Local SysTools v5.3.1114.138 loaded23:07:30.084: Thread:13: [BridgeInfo] Local configuration by name detected23:07:30.084: Thread:13: [BridgeInfo] Listen address: 127.0.0.123:07:30.084: Thread:13: [BridgeInfo] Bridge address: 127.0.0.123:07:30.084: Thread:13: [ConfigActivate] #4 Stored23:07:30.084: Thread:13: [ConfigActivate] #4 Set selection23:07:30.193: Thread:13: Starting console app: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsFuqafup.tmp" l23:07:30.209: Thread:13: Console app exited with code [1]: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsFuqafup.tmp" l23:07:32.802: Thread:13: Starting console app: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsKifidoq.tmp" l23:07:32.834: Thread:13: Console app exited with code [1]: "C:\Program Files\JetBrains\dotTrace\v5.3\Bin\JetBrains.Profiler.CoreHelperProcess.x86.exe" "/o=C:\Documents and Settings\lm\Local Settings\Temp\2\rrsKifidoq.tmp" l23:07:34.631: Thread:1: [PFC] JetBrains.CommonControls.Validation.WindowlessControlView was disposed of.23:07:34.631: Thread:1: [PFC] JetBrains.CommonControls.Validation.WindowlessControlView was disposed of.23:07:34.646: Thread:1: [PFC] JetBrains.CommonControls.Validation.WindowlessControlView was disposed of.23:07:34.693: Thread:1: [GetCursorPos] Calling.23:07:36.271: Thread:1: [JetEnvironment] IApplicationDescriptor::JetEnvironment::Products-- 1v0: JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor.23:07:36.287: Thread:1: [RunningProducts] KeyValuePair`2::RunsProducts::ProductContainersComposed-- 1v0: “[JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor, 'Product(dotTrace)' (JetBrains.Application.Components.CatalogueComponentContainer`1[JetBrains.Application.ShellComponentAttribute])]”.23:07:36.506: Thread:1: [UserActivityMonitor] Boolean::HaveSwitchAndActiveDeferred: False -> <N/A>.23:07:36.506: Thread:1: [UserActivityMonitor] Boolean::(HavePendingSwitch,IsApplicationActive).And: False -> <N/A>.23:07:36.506: Thread:1: [UserActivityMonitor] Boolean::HavePendingSwitch: False -> <N/A>.23:07:36.537: Thread:1: [MW] OnWmActivate Detached.23:07:36.568: Thread:1: dotTrace Performance 5.3.2 Version=5.3.1114.138, Built=2013-05-08T01:15:16, Configuration=“DotTraceApplication Professional PublicMode”23:07:36.599: Thread:1: [RunningProducts] KeyValuePair`2::RunsProducts::ProductContainersNonComposed-- 1v0: “[JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor, 'Product(dotTrace)' (JetBrains.Application.Components.CatalogueComponentContainer`1[JetBrains.Application.ShellComponentAttribute])]”.23:07:36.599: Thread:1: [RunsProducts] IApplicationDescriptor::RunsProducts::ProductsToRun-- 1v0: JetBrains.dotTrace.Descriptors.DotTraceApplicationDescriptor.23:07:36.599: Thread:1: [LCC for dotTrace] Shutdown product23:07:36.599: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]-- v: JetBrains.Application.Env.Components.SuspendResumeProductCanBeStarted (ACK).23:07:36.599: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]-- v: JetBrains.UI.Application.LicenseCheckComponent (ACK).23:07:36.599: Thread:1: [ReportsProductsAllowedToRun] IProductCanBeStarted::JetEnvironment::IProductCanBeStarted[]-- v: JetBrains.UI.License.UITimeBombComponent (ACK).
0

Hello Lars, thanks for details! Could you please try the latest release - dotTrace 5.5, published yesterday - I guess the issue was fixed in it.

0
Avatar
Permanently deleted user
5.5 installed, and still not quite there.The "Attach to Process" is still empty, however if I go to "Profile" and select IIS, it profiles something....like every website on the box. Each request brings up a snapshot, but I'm not able to filter on the website i'm interested in.Still, I don't think this is the intended behaviour. No Processes is avalable, I can only see the  profile type "Sampling" the others are n/a.So any other clues as to what could be wrong?Lars
0

Hello Lars,
Maybe it would be more convinient to you if we try to organize a kind of remote debug session? We'll connect to your machine and look at dotTrace's behaviour; all the operations we perform will be under your full control.
BTW, do you already have dotTrace license? Because if you don't we'd like to give you one for you help in investigating this issue.

0
Avatar
Permanently deleted user
I'd appreciate a license. Actually I was evaluating this tool and i'm pretty sure it can give me the reults i'm looking for.It could be ok to set up a debugging session. I'm available in the evenings CET. My mail is listed in the jetBrans profile. We could discuss detail in mail.
0

Hello Lars,
Unfortunately I have no access to your email in profile :) So please contact me: alexandra.rudenko@jetbrains.com.
For remote debug we usually need Process explorer (http://technet.microsoft.com/en-us/sysinternals/bb896653) and Process monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645) - Windows tools for easier working with processes; Far manager (http://www.farmanager.com/index.php?l=enhttp://www.farmanager.com/index.php?l=en) - a file manager that helps to browse different types of files with ease; and TeamViewer (http://www.teamviewer.com/ru/index.aspx) for connection. Please install them.
As for time, our developer is in same time zone as you, so what about 19:00 today or tomorrow?

0

Please sign in to leave a comment.