Reputation: 21280
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 .
Upvotes: 0
Views: 75
Reputation: 6472
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
Upvotes: 0
Reputation: 20693
On IIS7 you could use Microsoft.Web.Administration assembly, look at ApplicationPool class
Upvotes: 1