Access denied when connecting to w3wp process

Memory profiling for .NET developers

Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings

Access denied when connecting to w3wp process

Postby glenn1179 » Tue Oct 01, 2013 7:40 pm

Server 2003 attempting to connect to .NET 4 IIS worker process. I am running the exe as a local admin user. Below is the error log. How should I proceed?

01 Oct 2013 13:07:14.960 [1] INFO RedGate.Profiler.Logging.LogService - Starting new ANTS Memory Profiler 7 session
01 Oct 2013 13:07:14.960 [1] INFO RedGate.Profiler.Logging.LogService - Assembly version: 7.4.0.44
01 Oct 2013 13:07:21.257 [1] WARN RedGate.Profiler.OS.Local.LocalWindowsVersionInspector - Detected Windows version: Windows Server 2003 Enterprise (5.2 32-bit Server)
01 Oct 2013 13:07:21.257 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - IIS is supported on installed OS version
01 Oct 2013 13:07:21.507 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if inetinfo.exe running: True
01 Oct 2013 13:07:21.507 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is running.
01 Oct 2013 13:07:21.507 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is enabled.
01 Oct 2013 13:07:21.523 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Successfully detected IIS installation: IIS 6 (Auto-detected)
01 Oct 2013 13:07:21.523 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is installed.
01 Oct 2013 13:07:31.227 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:31.399 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:31.414 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:31.461 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:31.477 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:31.492 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.430 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v2.0.50727
01 Oct 2013 13:07:33.446 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.477 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.524 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.539 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.711 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.727 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.743 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.805 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.821 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.868 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.899 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v2.0.50727
01 Oct 2013 13:07:33.930 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.961 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:33.993 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.008 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.555 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.586 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.602 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.649 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.680 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.696 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.727 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v2.0.50727
01 Oct 2013 13:07:34.743 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.774 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.805 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:07:34.821 [1] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
01 Oct 2013 13:08:20.231 [8] WARN RedGate.Profiler.IISSupport.SharePointHelper - SharePoint version: none found (looking for 2010 or 2007 using registry keys)
01 Oct 2013 13:08:20.715 [6] INFO RedGate.Profiler.Engine.Logger - ANTS Memory Profiler Engine has started.
01 Oct 2013 13:08:20.715 [6] INFO RedGate.Profiler.Engine.Logger - Version: 7.4.0.44
01 Oct 2013 13:08:20.746 [6] INFO RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Listening for connections on \\\\.\\pipe\\AMP7.
01 Oct 2013 13:08:21.402 [29] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Starting to attach to process ID 0x2e90
01 Oct 2013 13:08:21.465 [29] WARN RedGate.Profiler.Engine.Startup.Basic.Attacher - This process does not have the debug privilege
01 Oct 2013 13:08:21.481 [29] ERROR RedGate.Profiler.Engine.Startup.Basic.Attacher - Could not open target process
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
01 Oct 2013 13:08:21.574 [29] ERROR RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Unhandled exception from session
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at ??.
glenn1179
 
Posts: 2
Joined: Tue Oct 01, 2013 7:36 pm

Postby glenn1179 » Tue Oct 01, 2013 8:05 pm

This process does not have the debug privilege.

That was the key to finding the fix. The admin user I was using didn't have debug right explicitly defined in the Local Security Policy. I found another user that did and this is now working.
glenn1179
 
Posts: 2
Joined: Tue Oct 01, 2013 7:36 pm

Postby jessica.ramos » Wed Oct 02, 2013 8:33 pm

That's great to hear you were able to sort out the problem! And many thanks for posting your solution. :D
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests