Nick Grattan's Blog

About Microsoft SharePoint, .NET, Natural Language Processing and Machine Learning

Finding the correct w3wp.exe when debugging

leave a comment »

When using the Visual Studio Debug +Processes menu command to attach to a web site to debug you may be presented with several w3wp.exe processes under II6 with Windows Server 2003. There is one for each application pool running under IIS. Here’s how to find out which one is running your application:

  1. Run a command prompt and navigate to the Windows system32 folder
  2. Issue the following command:

cscript iisapp.vbs

The output from this script will be something like:

Microsoft (R) Windows Script Host Version 5.6

Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

 

W3WP.exe PID: 4044   AppPoolId: MSSharePointPortalAppPool

The process id is 4044 for, in this case, SharePoint Portal Server.

Advertisements

Written by Nick Grattan

July 20, 2007 at 4:53 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: