Or do you need full IIS reset? In that case, trying with Windows Script Host etc and running iisreset is one option, just note that it needs probably higher privileges and can be quite unwelcome if it is used maliciously.
Actually, I don't need to fully restart the IIS. As I gather, application pools were only introduced in IIS 6 and does not exist in IIS 5, but please correct me if I am wrong.
Would you be so kind as to explain what an application pool is and how I retrieve my application pool name from IIS ?
In IIS 6.0, application pools are used to separate applications to be served by different worker processes, and certain settings can be specified per-application-pool basis. Some explanation with screenshots:
http://www.west-wind.com/webconnection/docs/_0v81d7y5q.htm
siorli
Member
70 Points
217 Posts
Restart IIS 5 or 6 from asp.net 2.0 page
Jul 07, 2008 04:23 PM|LINK
Hi.
I would like, as the title says, to restart the IIS 5 or 6 from an asp.net 2.0 page using a script or vb.net code,
or any other way as long as it is done from an asp.net 2.0 page.
Please tell me how I can acheive this.
Thanks.
joteke
All-Star
46284 Points
6896 Posts
ASPInsiders
MVP
Re: Restart IIS 5 or 6 from asp.net 2.0 page
Jul 07, 2008 05:14 PM|LINK
See: http://terrapinstation.wordpress.com/2008/06/12/restart-iis-application-pool-from-aspnet-page/
Or do you need full IIS reset? In that case, trying with Windows Script Host etc and running iisreset is one option, just note that it needs probably higher privileges and can be quite unwelcome if it is used maliciously.
Teemu Keiski
Finland, EU
siorli
Member
70 Points
217 Posts
Re: Restart IIS 5 or 6 from asp.net 2.0 page
Jul 07, 2008 06:06 PM|LINK
Hi joteke and thank you for your quick reply.
Actually, I don't need to fully restart the IIS. As I gather, application pools were only introduced in IIS 6 and does not exist in IIS 5, but please correct me if I am wrong.
Would you be so kind as to explain what an application pool is and how I retrieve my application pool name from IIS ?
Thank you.
joteke
All-Star
46284 Points
6896 Posts
ASPInsiders
MVP
Re: Restart IIS 5 or 6 from asp.net 2.0 page
Jul 08, 2008 01:18 PM|LINK
In IIS 6.0, application pools are used to separate applications to be served by different worker processes, and certain settings can be specified per-application-pool basis. Some explanation with screenshots: http://www.west-wind.com/webconnection/docs/_0v81d7y5q.htm
Teemu Keiski
Finland, EU