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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top