Hello,
I want to debug a deployed web service in a remote server. The client is a set-top-box, so I can't debug the client and web service in a single machine.
There are many "w3wp.exe" processes in the server. I think only one hosts the web service that I want to debug. Which one should I debug? Are there any tools to discover the web services that w3wp.exe is hosting?
Best regards,
Zhenxin Li
Josh Twist - 10 Jan 2006 14:43 GMT
That's an interesting question. I'm not sure you can easily tell - I'd
love to know if there is a way.
In the meantime, could you not just attach to both processes?
Josh
http://www.thejoyofcode.com
Zhenxin Li - 11 Jan 2006 07:13 GMT
Not only two "w3wp.exe" processes. There are many of them...
> That's an interesting question. I'm not sure you can easily tell - I'd
> love to know if there is a way.
[quoted text clipped - 3 lines]
> Josh
> http://www.thejoyofcode.com
Martin Kulov - 11 Jan 2006 18:43 GMT
> Hello,
>
> There are many "w3wp.exe" processes in the server. I think only one hosts
> the web service that I want to debug. Which one should I debug? Are there
> any tools to discover the web services that w3wp.exe is hosting?
Hi Zhenxin,
you can query the command line parameters for each w3wp.exe process. IIS
starts each of them each application pool in a separate process using the
command line parameter -ap. See two examples of w3wp processes that run on
my machine.
c:\windows\system32\inetsrv\w3wp.exe -a
\\.\pipe\iisipmc6c05083-6966-4da1-a466-5ed454345a7c -t 20 -ap
"RemoteDiskAppPool"
c:\windows\system32\inetsrv\w3wp.exe -a
\\.\pipe\iisipm241feb80-cbce-4349-9325-7cc0c431b96a -t 20 -ap
"DefaultAppPool"
Best,

Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Josh Twist - 06 Feb 2006 15:35 GMT
Maybe this will help:
http://technet2.microsoft.com/WindowsServer/en/Library/30b55aee-c3a4-402a-a98b-4
6fc194299ec1033.mspx
Josh
http://www.thejoyofcode.com/