When I try to start profiling my web application in IIS, I get the error "Failed to connect to target process because an exception occurred: Could not start IIS. Please check your settings and try again." I pasted the exception details below.
  • I'm running ANTS as administrator.
  • I'm using ANTS Performance Profiler 7.4
  • I'm running Windows 7 with IIS7
It was working for me some moths ago. Then I didn't use it for a while, and now I need to use it again, but I'm getting this error. I can't think of anything in particular that I have changed, but I guess something is different.

Any suggestions?

Exception Details:
Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at ..Launch()
at ?..?()

Caused by:

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

Caused by:

Timed out waiting for port 7151 on 127.0.0.1 to become available
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at ?.?.??()
at ..??( )
at ..()

Caused by:

Timed out waiting for port 7151 on 127.0.0.1 to become available
RedGate.Profiler.Engine.Startup.IIS.PortTimeoutException
stack trace:
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(IPAddress address, Int32 port, Int32 timeout)
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.WaitForPort(String hostname, Int32 port, Int32 timeout)
at ..StartProfilingIIS(String , String )
at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue)
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.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
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.IIISActuator`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue)
amy_t
0

Comments

1 comment

  • amy_t
    Redgate support pointed me toward looking at the Windows application event log, where we found errors like these:
    Source: HostableWebCore
    Error: The application '/' belonging to site '7' has an invalid AppPoolId 'Bds' set. Therefore, the application will be ignored.

    Source: HostableWebCore
    Error: Site 7 was disabled because the root application defined for the site is invalid. See the previous event log message for information about why the root application is invalid.

    I was using a custom app pool for the website. I switched it to use DefaultAppPool and the profiler started up just fine.

    Using the default app pool when profiling is just fine with me, so all is well.
    amy_t
    0

Add comment

Please sign in to leave a comment.