Starting Web Application IIS7 Windows 7

Code profiling for .NET Developers

Starting Web Application IIS7 Windows 7

Postby RussellClarvoe » Fri Feb 11, 2011 2:34 pm

I am trying to find an explanation of how the ANTs profiler starts a web application running in IIS.

If my application is running and I start the profiler, it appears to start a second instance of the web application. Files that are opened by our log tool ( log4net ) are still locked by the original instance of the application.

Although I can of course restart IIS and then launch the app for the first time using the profiler, I am hoping to understand how it's possible two launch the same app twice. Does the profiler start its own app pool?

Posts: 1
Joined: Fri Feb 11, 2011 2:24 pm

Postby Brian Donahue » Fri Feb 11, 2011 6:22 pm

It's pretty simple really -- ANTS Profiler just leverages the ability to launch w3wp.exe from outside IIS. It will create a cut-down configuration file based on your applicationHost.config and then start w3wp.exe -h <configFile>.

(note it's slightly different for IIS v6)

This poses some restrictions, namely that w3wp is running as you and not the account that normally runs the application pool (ie NETWORK SERVICE), you cannot launch any web apps that require SSL, and you must dedicate an unused TCP port to this worker process.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 10:48 am

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest