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
精彩评论