【发布时间】:2011-06-15 01:41:23
【问题描述】:
我使用以下代码创建应用程序池:
var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName);
DirectoryEntry newpool;
DirectoryEntry apppools = new DirectoryEntry(metabasePath);
newpool = apppools.Children.Add(appPoolName, "IIsApplicationPool");
newpool.CommitChanges();
如何指定应用程序池应使用 .NET Framework 4.0?
【问题讨论】:
标签: c# iis-7 directoryservices application-pool