Application pools settings
Is it possible to set up programmatic what application pool to use in my web service , and set it开发者_开发知识库's parameters ?
I use vs2005 .
Thanks for help .
On IIS7 you could use Microsoft.Web.Administration assembly, look at ApplicationPool class
http://msdn.microsoft.com/en-us/library/microsoft.web.administration.applicationpool%28v=vs.90%29.aspx
NightWalker you can you powershell to programatically setup and manage sites.
Import-Module webadministration
New-WebAppPool -Name "Test 123 App Pool"
New-Website "Test WebSite" -ApplicationPool "Test 123 App Pool"
The following will setup and app pool and website, the website will use the app Pool.
Hope it helps
精彩评论