Red Gate forums :: View topic - Could not start IIS - CannotStartSessionException
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 5
ANTS Performance Profiler 5 forum

Could not start IIS - CannotStartSessionException

Search in ANTS Performance Profiler 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
AlexPop



Joined: 16 Sep 2009
Posts: 2

PostPosted: Thu Sep 17, 2009 9:43 am    Post subject: Could not start IIS - CannotStartSessionException Reply with quote

Hi all,
I am trying to use ANTS Performance Profiler 5.1.0.14 to analyse performance for a website running on II6(32 bit mode) on WIndows 2003 x64.
The site contains .NET 1.1 compiled binary files but runs under ASP.NET 2.0(32 bit version).
I managed to get the test going under IIS default port but if I try to run it on a unused port (8013 is the one proposed in Application settings) I have this exception :
Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at bJ.Launch()
at RedGate.Profiler.Session.ProfilerSession.j()

Caused by:

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

Caused by:

Object reference not set to an instance of an object.
System.NullReferenceException
stack trace:
at RedGate.Profiler.Engine.Startup.IIS.IIS6Utilities.GetW3wpArgs(Uri url, Boolean profileOnNewPort, Int32 newPort)
at bp.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 bQ.PerformLaunch()
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Fri Sep 18, 2009 12:03 pm    Post subject: Reply with quote

Sorry you are having problems, can you use ensure you are using "classic" mode for your app pool?

You could also extend the timeout of app pool startup (I use 99 seconds, just to be sure!)

Please try that and let me know if you have any further problems.
Back to top
View user's profile Send private message
AlexPop



Joined: 16 Sep 2009
Posts: 2

PostPosted: Fri Sep 18, 2009 12:07 pm    Post subject: Reply with quote

Hi,
I am using II6 so there is no classic mode. The reported error only comes up if I try to start a profiling session using an unused port( in order to prevent the worker process that hosts the actual site to restart as per ANTS Performance Profiler) documentation.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Wed Oct 28, 2009 7:45 pm    Post subject: Reply with quote

Sorry for the long delay in response- I kept on trying to reproduce this and it wasn't easy. I finally did this and the upshot is - its now bug number PP-703. I am now lobbying for the fix to be in the next major relase for the product.
Back to top
View user's profile Send private message
molson



Joined: 30 Dec 2009
Posts: 1

PostPosted: Wed Dec 30, 2009 7:59 pm    Post subject: Reply with quote

Are there any workarounds in the short term? Restarting IIS to profile on the original port works, but it's a bit unfriendly on a shared server.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group