Can't attach to IIS on Windows 2012 R2
DGilmour22
Posts: 2
I'm trying to profile an asp.net website and can't get the profile to start. The log has this error. I have disabled scanning of the Antivirus. This is a new server build. No prior profiling tools.
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Launching session
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Launch: Will request elevation
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Options: IL timings turned on
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - ANTS is running under a 64-bit version of Windows. 32-bit binaries were found in C:WINDOWSSysWOW64.
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - InetSrv directory is C:WINDOWSsystem32inetsrv
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - InetSrv WOW64 directory is C:WINDOWSSysWOW64inetsrv
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Trying to start the IIS profiler service
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - The IIS service appears to be registered; requesting that it start now
15 Jan 2016 10:15:53.607 [Profiler pipe monitor] INFO RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Process ID 0x1c84 'C:WINDOWSsystem32inetsrvw3wp.exe' has connected.
15 Jan 2016 10:16:24.203 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Process rejected - no manager available
15 Jan 2016 10:16:24.219 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - An unexpected error was encountered while trying to send data to the process being profiled.
System.IO.IOException: Pipe write operation failed with code 0xe8
at Ï•.?.??()
at Ï•.?.Ï—(ICollection`1 )
at Ï•..()
at Ï•..?(? , )
15 Jan 2016 10:16:24.219 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Unexpected exception while processing a message.
System.InvalidOperationException: An unexpected error was encountered while trying to send data to the process being profiled. ---> System.IO.IOException: An unexpected error was encountered while trying to send data to the process being profiled. ---> System.IO.IOException: Pipe write operation failed with code 0xe8
at Ï•.?.??()
at Ï•.?.Ï—(ICollection`1 )
at Ï•..()
at Ï•..?(? , )
--- End of inner exception stack trace ---
at Ï•..?(? , )
at Ï•..?(? , )
--- End of inner exception stack trace ---
at Ï•..?(? , )
at Ï•..?(? , Byte[] )
at Ï•..?()
Event log has this error.
.NET Runtime version 4.0.30319.34209 - Loading profiler failed. The profiler COM object was instantiated, but the profiler failed during its initialization callback. Profiler CLSID: '{F487E236-8315-45AF-833E-DF0967B1E79A}'. HRESULT: 0x80004004. Process ID (decimal): 7300. Message ID: [0x2505].
The GUID in the registry is the Redgate profiler class.
Thanks in advance for your help.
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Launching session
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Launch: Will request elevation
15 Jan 2016 10:15:49.653 [11] INFO RedGate.Profiler.Logic.Controllers.Session.Type.BaseRunner - Options: IL timings turned on
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - ANTS is running under a 64-bit version of Windows. 32-bit binaries were found in C:WINDOWSSysWOW64.
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - InetSrv directory is C:WINDOWSsystem32inetsrv
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - InetSrv WOW64 directory is C:WINDOWSSysWOW64inetsrv
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Trying to start the IIS profiler service
15 Jan 2016 10:15:49.700 [11] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - The IIS service appears to be registered; requesting that it start now
15 Jan 2016 10:15:53.607 [Profiler pipe monitor] INFO RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Process ID 0x1c84 'C:WINDOWSsystem32inetsrvw3wp.exe' has connected.
15 Jan 2016 10:16:24.203 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Process rejected - no manager available
15 Jan 2016 10:16:24.219 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - An unexpected error was encountered while trying to send data to the process being profiled.
System.IO.IOException: Pipe write operation failed with code 0xe8
at Ï•.?.??()
at Ï•.?.Ï—(ICollection`1 )
at Ï•..()
at Ï•..?(? , )
15 Jan 2016 10:16:24.219 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Unexpected exception while processing a message.
System.InvalidOperationException: An unexpected error was encountered while trying to send data to the process being profiled. ---> System.IO.IOException: An unexpected error was encountered while trying to send data to the process being profiled. ---> System.IO.IOException: Pipe write operation failed with code 0xe8
at Ï•.?.??()
at Ï•.?.Ï—(ICollection`1 )
at Ï•..()
at Ï•..?(? , )
--- End of inner exception stack trace ---
at Ï•..?(? , )
at Ï•..?(? , )
--- End of inner exception stack trace ---
at Ï•..?(? , )
at Ï•..?(? , Byte[] )
at Ï•..?()
Event log has this error.
.NET Runtime version 4.0.30319.34209 - Loading profiler failed. The profiler COM object was instantiated, but the profiler failed during its initialization callback. Profiler CLSID: '{F487E236-8315-45AF-833E-DF0967B1E79A}'. HRESULT: 0x80004004. Process ID (decimal): 7300. Message ID: [0x2505].
The GUID in the registry is the Redgate profiler class.
Thanks in advance for your help.
Comments
Can you check if the user launching ANTS is added to the "Debug Programs" policy in Windows?
Can you check if an antivirus is interfering at all with the profiler connecting to the process?