Options

Cannot profile web sites hosted in IIS

eclaecla Posts: 6
I'm receiving the following error when I try to profile my web application. I can't seem to profile any web site hosted in my local pc for that matter.

Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bt.Launch()
at RedGate.Profiler.Session.ProfilerSession.h()

Caused by:

Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bt.Launch()

Caused by:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
System.Net.Sockets.SocketException
stack trace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IProxyStatusEventTarget.ServiceStatusChanged(Object sender, StatusEventArgs e)
at bt.a(Status , String )
at bt.j()
at bt.StartProfilingIIS(String currentUserName, Uri& url)
at RedGate.Profiler.Engine.Startup.IIS.IISStarter.StartProfilingIIS(String currentUserName, Uri& url)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Profiler.Engine.Startup.IProxyIISSession.StartProfilingIIS(String currentUserName, Uri& url)
at bt.Launch()

Comments

  • Options
    Hi and thanks for your post to our forum.

    I do not know what's happening for sure from the stack trace... can you please let us know the OS and IIS version of the machine that is having this problem? It may be as simple as letting the ANTS Performance Profiler Service have access through your personal firewall or something, but the way that ANTS Profiler checks to see that IIS is available depends on the installed version of IIS.

    Thanks!
  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    If you are using IIS version 5, there may be a failure to start IISAdmin or the W3Svc.
  • Options
    If you are using IIS version 5, there may be a failure to start IISAdmin or the W3Svc.

    Hi Brian,
    I'musing IIS 6 and Windows Server 2003 Service Pack 2. When I tried it again today, it is now saying:

    Could not start IIS.
    RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
    at bt.Launch()
    at RedGate.Profiler.Session.ProfilerSession.h()

    Caused by:

    Could not start IIS.
    RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
    at bt.Launch()

    Caused by:

    No connection could be made because the target machine actively refused it
    System.Net.Sockets.SocketException
    stack trace:
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
    at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at RedGate.Profiler.Engine.Startup.IProxyStatusEventTarget.ServiceStatusChanged(Object sender, StatusEventArgs e)
    at bt.a(Status , String )
    at bt.j()
    at bt.StartProfilingIIS(String currentUserName, Uri& url)
    at RedGate.Profiler.Engine.Startup.IIS.IISStarter.StartProfilingIIS(String currentUserName, Uri& url)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
    rethrown at [1]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at RedGate.Profiler.Engine.Startup.IProxyIISSession.StartProfilingIIS(String currentUserName, Uri& url)
    at bt.Launch()
  • Options
    Hi,

    Unfortunately I don't think this is an easy answer. When you get this error, it means that your computer has been configured to explicitly deny incoming winsock connections. The most likely culprit would be an Internet Security tool or an anti-virus/adware program.
Sign In or Register to comment.