Last post Jun 16, 2010 10:32 AM by jharwood
Jun 14, 2010 09:39 AM|jharwood|LINK
Is there a way to select a Default Application Pool when creating a Deployment Project? I need to select "Classic .Net AppPool" instead of "DefaultAppPool". Is there a way to do this, I have been looking but have not been able to find it. Thanks in advance
for the help.
Jun 16, 2010 10:32 AM|jharwood|LINK
I figured it out. I created a console app with the follow:
ServerManager mgr1 = new ServerManager();
//Assign to Application
Site defaultSite = mgr1.Sites["Default Web Site"];
Application VDir = defaultSite.Applications["/VirtDir"];
VDir.ApplicationPoolName = "NameOfAppPool";
// Commit the changes
I then added a Custom Action Class to execute the console app.