开发者

Application pools settings

开发者 https://www.devze.com 2023-02-18 20:07 出处:网络
Is it possible to set up programmatic what application pool to usein my web service , and set it开发者_开发知识库\'s parameters ?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号