开发者

How to change application pool of site programatically depending on target .net version

I want to set ap开发者_JAVA百科plication pool of site programatically depending on .net target version.Can somebody help me with C# code for this.I want like

for(each application pool in system)
{
if this pool is targeting .net V2.0 then set site's application pool to this pool
}


Take a look at ServerManager.ApplicationPools, should get you started, specifically I think you're looking for ManagedRuntimeVersion

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜