Application Pool Settings RRS feed

  • Question

  • User-44640224 posted

     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.

    Monday, June 14, 2010 9:39 AM


  • User-44640224 posted

    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.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 16, 2010 10:32 AM