How to start/stop application in IIS programatically? [Answered]RSS

1 reply

Last post Feb 29, 2012 09:03 PM by Dalong Zhang - MSFT

  • How to start/stop application in IIS programatically?

    Feb 28, 2012 07:26 AM|Builder1978|LINK

    Hello, Is there any way to start/stop application in IIS programatically? I know that it is possible to start/stop application pool programatically: using Microsoft.Web.Administration; var serverManager = new ServerManager(); serverManager.ApplicationPools["SomeAppPool"].Start(); Class Microsoft.Web.Administration.Application doesn't contain any Start or Stop method. In IIS manager it is possible to start/stop application, so I guess it must be possible to do it programatically. Please, help. Builder

    IIS 7.0 Administration .Net

  • Re: How to start/stop application in IIS programatically?

    Feb 29, 2012 09:03 PM|Dalong Zhang - MSFT|LINK

    Hi,

    I noticed that you have a same thread here, and you have posted your answer.

    Thanks for sharing.

    Please mark the replies as answers if they help or unmark if not.
    Feedback to us