Créer un pool d'applications qui l'utilise .NET 4.0

J'utilise le code suivant pour créer un pool d'application:

var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName);
DirectoryEntry newpool;
DirectoryEntry apppools = new DirectoryEntry(metabasePath);
newpool = apppools.Children.Add(appPoolName, "IIsApplicationPool");
newpool.CommitChanges();

Comment dois-je préciser que l'application de la piscine doit utiliser .NET Framework 4.0?

InformationsquelleAutor jgauffin | 2011-01-25