2011-11-07 25 views
3

在.net中,在web服務(或網站)中是否有一種簡單的方法可以從HttpRequestHttpContext獲取運行該服務的應用程序池的名稱?從請求中識別應用程序池的名稱

+0

可能重複[如何讓應用程序池名稱特定網站IIS6 programaticaly? C#](http://stackoverflow.com/questions/511263/how-to-get-the-application-pool-name-for-a-specific-website-iis6-programaticaly) – kd7

+0

請參閱[使用IIS應用程序池使用C#](http://weblogs.asp.net/robinkedia/archive/2009/04/28/playing-around-with-iis-application-pool-using-c.aspx),在SO - [應用程序池從C#](http://stackoverflow.com/questions/249927/application-pool-from-c-sharp) – sll

+0

不是真的 - 因爲上述只適用於IIS,並且Web服務不是一個網站不一定會在IIS中運行。 .. – Yahia

回答

相關問題