to recycle using script see this
http://groups.google.ca/groups?q=rec...phx.gbl&rnum=1
for codebehind see this
void RestartApplicationPool(string applicationPoolName)
{
if (applicationPoolName == null)
{
throw new ArgumentNullException("applicationPoolName");
}
using (DirectoryEntry applicationPool = new
DirectoryEntry("IIS://localhost/W3SVC/AppPools/" + applicationPoolName))
{
applicationPool.Invoke("Recycle");
}
}
--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at
www.lulu.com/owc
------------------------------------------------------------
"Ram" <ni***@bezeqint.net> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hey,
Is there a way to remotely Recycle IIS 6.0 Application Pools in .Net?
Thanks ahead
--Ram