Programatically Re-starting the web server

  • Thread starter Thread starter Steve Caliendo
  • Start date Start date
S

Steve Caliendo

Hi,

I would like to know if it is possible to re-start the web server from
within asp.net. Maybe a DLL could kill the aspnet_wp ?

Thanks,

Steve
 
I'm not sure if you there is a namespace for it, but you can always shell
out from your code to a dos prompt and call iisreset assuming you have the
relevant permissions and your environment variables are appropriately set.
 
Back
Top