At the time of debugging ASP.NET web application, we are attaching the particular worker process (tools -> Attach process) .
The process window will show the worker process (w3wp.exe) which is currently running on IIS.
We select the process and click on attach button to start the debugging.
But the problem here is that if multiple processes are running, then we get confused that which process we should attach for debugging our application. For this we need to first identify the particular worker process for our application.
So, to do this follow the few steps in IIS6.0
Go to command prompt (Start ->Run->cmd)
Go to Windows ->System32 (C:\WINDOWS\system32)
Run cscript iisapp.vbs(C:\WINDOWS\system32>cscript iisapp.vbs)
Here we get the list of Running Worker ProcessID with Application Pool Name.
From this Applcation pool name we can easily identify which worker process is related to our application.