开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜