IIS application pool defines a set of web applications and their corresponding worker processes to provide a convenient way to administer a set of web sites and applications. Sometime developers need to programmatically start, stop or recycle the IIS application pool.
In this post, we will learn how to programmatically call the directory service to invoke the start, stop and recycle operation on IIS server.