Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > restarting IIS from within ASP.NET

Thread Tools

restarting IIS from within ASP.NET

Simon Weaver
Posts: n/a
I want to restart IIS from within ASP.NET from a WAP enabled phone.
That way if I'm on the beach and the server slows down I can just restart it
manually. I'd also like to be able to programatically kill other executables
on demand (i.e. please dont stop me and tell me that IIS restarts itself).

There is a pskill.exe executable available from which works
just fine. BUT I cannot get it to run because it doesnt have enough

process = new System.Diagnostics.Process();
process.StartInfo.UseShellExecute = true;
process.StartInfo.RedirectStandardOutput = false;
process.StartInfo.FileName = "pskill.exe";
process.StartInfo.Arguments = "consoleappserver.exe";

I want to minimize the security risk of opening security to allow this to
although all code on the server is trusted. NB. I have rights to pskill.exe,
its just
that program that cannot run anything.

The error I get is:

PsKill v1.03 - local and remote process killer Copyright (C) 2000 Mark
Russinovich Unable to kill process
consoleappserver.exe: Access is denied.

Note: even if the ASPNET Username has started the consoleappserver.exe
process it
still cannot kill it.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting IIS every time I add accounts to local machine.... Thomas Smith ASP .Net Security 1 06-22-2005 03:00 AM
Restarting IIS after installation of a new Webapplication Balaram Barange ASP .Net 1 06-07-2005 01:19 PM
computer keep restarting. =?Utf-8?B?ZGV3YQ==?= Wireless Networking 2 03-13-2005 01:01 AM
.NET server becomes slow after several hours, go back normal after restarting IIS davidw ASP .Net 3 08-27-2004 06:25 PM
Problems after restarting IIS ???? Mark Feather ASP .Net 0 07-14-2003 01:33 PM