开发者

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

开发者 https://www.devze.com 2023-02-15 17:09 出处:网络
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

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

精彩评论

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