Hello,
I am trying to find out a number of Threads for an asp.net web site. The web site has been hosted in IIS 6.0 , I used the following C# code to find the number of thread.
It works good with my location machine (Windows XP Professional) , But this same code is not working in the Development Server ( Windows Server 2003). The difference is development server has “app pool”
Any of you know why? Or Could any of you help me find process id of a web site which is running on a app pool, so that I can get the process and get the thread count?
using System.Diagnostics;
public string getThreadCount()
{
Process wp = Process.GetCurrentProcess() ;
return wp.Threads.Count.ToString();
}
Thanks
Sundhar