Profiler not working on IIS

Code and memory profiling for .NET developers.

Moderators: Brian Donahue, richardjm, StephenC

Profiler not working on IIS

Postby whyisthiswrong » Fri Feb 20, 2009 10:28 am

Hi there,

details:
Windows Enterprise server 2008
IIS 7.0
asp.net application on Asp.net 2.0, and .NET 3.5 hosten in IIS.

Trying to launch ants performance profiler (version 4.3.0.196)
Always getting exception:

Code: Select all
Could not launch the task to be profiled.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
  at bI.Launch()
  at RedGate.Profiler.Session.ProfilerSession.j()

Caused by:

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

Caused by:

Timed out waiting for port 80 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 bn.StartProfilingIIS(String currentUserName, String subprocessVariableValue)
  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)
  at bO.PerformLaunch()



tried both classic .NET pool and integrated.

Security Event log shows nothing interesting, some special logons.

While application log shows:


Code: Select all
1:
The configuration manager for Windows Process Activation Service (WAS) did not initialize. The data field contains the error number.
2:

Windows Process Activation Service (WAS) is stopping because it encountered an error. The data field contains the error number.


Same goes for IIS, or for other port. Firewall is turned off. PC is in domain.
Any more info needed?
whyisthiswrong
 
Posts: 1
Joined: Fri Feb 20, 2009 10:12 am

Postby Alex.Davies » Fri Feb 20, 2009 11:39 am

Hi,
I'm sorry that the profiler isn't working for your application.

I think what's happening is that the modified applicationHost.config file that the profiler is making isn't valid in some way.

I wonder if you could send me your original applicationHost.config, which can be found in:
C:\\Windows\\system32\\inetsrv\\config
And any of our modified copies, which can be found at:
%USERPROFILE%\\AppData\\Local\\Red Gate\\ANTS Performance Profiler 4
and are named like tmp*******.config

IF you could send these to support@red-gate.com and reference this forum thread in the email, that would help.

Thanks,
Alex
Alex
Developer,
Red Gate .NET Tools
Alex.Davies
 
Posts: 335
Joined: Tue Dec 02, 2008 12:23 pm
Location: Cambridge, uk

Postby Alex.Davies » Fri Feb 20, 2009 5:26 pm

Hi,
While looking at windows server 2008, we found a way to get the same exception that you have. An instance of the "w3wp.exe" process may have been left by a previous profiling session exiting incorrectly. This simply needs to be ended in task manager (or by restarting the computer) to fix the problem if this is the case.

Hope that helps,
Alex
Alex
Developer,
Red Gate .NET Tools
Alex.Davies
 
Posts: 335
Joined: Tue Dec 02, 2008 12:23 pm
Location: Cambridge, uk


Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests