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. Like all websites present in IIS server, the application pool also has a specific URL. It uses "IIS:" protocol to communicate with the server. The URL consists of SERVER_NAME, a generic path and the name of the application pool. Here is the structure of the application pool URL (don't forget to change the SERVER_NAME and APP_POOL_NAME): private const string APPLICATION_POOL_URL = "IIS://SERVER_NAME/W3SVC/AppPools/APP_POOL_NAME"; To load the pool, you need to use the class "DirectoryEntry" present under the namespace...


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

IIS,.Net,Articles,Computer Tutorials