Start Error: Couldn't determine the IIS Site associated with

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

Start Error: Couldn't determine the IIS Site associated with

Postby gspotweb » Mon Sep 21, 2009 12:08 pm

Hi there

Just downloaded and installed the trial version but when I try to start the profiler i get the following error:

(am running IIS on Windows 7)

The site I'm trying to profile is working fine and is being served by IIS7.

Error:

Couldn't determine the IIS Site associated with URL 'http://www.xxx.local/'. Please check that the URL is serviced by the instance of IIS running on this machine
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at bJ.Launch()
at RedGate.Profiler.Session.ProfilerSession.j()

Caused by:

Couldn't determine the IIS Site associated with URL 'http://www.xxx.local/'. Please check that the URL is serviced by the instance of IIS running on this machine
RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException
at bQ.PerformLaunch()
at bJ.Launch()

Caused by:

Couldn't determine the IIS Site associated with URL 'http://www.xxx.local/'. Please check that the URL is serviced by the instance of IIS running on this machine
RedGate.Profiler.Engine.Startup.IIS.IISException
stack trace:
at RedGate.Profiler.Engine.Startup.IIS.IIS7Utilities.a(String , Uri , Boolean , Int32 )
at RedGate.Profiler.Engine.Startup.IIS.IIS7Utilities.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()
gspotweb
 
Posts: 4
Joined: Mon Sep 21, 2009 12:03 pm

Postby Chris.Allen » Mon Sep 21, 2009 3:46 pm

Is the web site on the same machine that you are profiling (the .NET profiling API can't work remotely)?

If they are on the same machine - try using IP adress, or just localhost. I have seen some odd issues with resolving names.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby gspotweb » Tue Sep 22, 2009 8:10 am

The website is on the same PC as VS and ANTS

IIS7 is running several websites on this machine and I use the hosts file to provide name resolution.

I guess I could just switch off all the sites other than the one I'm testing and then just use the IP address.
gspotweb
 
Posts: 4
Joined: Mon Sep 21, 2009 12:03 pm

Postby Chris.Allen » Tue Sep 22, 2009 1:22 pm

Please try that and let me know if it works better.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby gspotweb » Tue Sep 22, 2009 5:12 pm

OK, tried that on just the one IP address but got this:

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:

No such host is known
System.Net.Sockets.SocketException
stack trace:
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6, Boolean throwOnFailure)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at RedGate.Profiler.Engine.Startup.IIS.IISUtilities.a(Uri )
at RedGate.Profiler.Engine.Startup.IIS.IIS7Utilities.GetApplicationPool(Uri uri)
at RedGate.Profiler.Engine.Startup.IIS.IIS7Utilities.GetIISinx64(Uri url)
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()
gspotweb
 
Posts: 4
Joined: Mon Sep 21, 2009 12:03 pm

Postby Chris.Allen » Tue Sep 22, 2009 5:18 pm

Can you try 127.0.0.1?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby gspotweb » Wed Sep 23, 2009 3:06 pm

Thats done it. I now have a profile for my web application

Now I have to figure out what it all means...
gspotweb
 
Posts: 4
Joined: Mon Sep 21, 2009 12:03 pm


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 0 guests