Ask a Question related to ASP.NET General, Design and Development.
-
Simon Weaver #1
restarting IIS from within ASP.NET
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 sysinternals.com which works
just fine. BUT I cannot get it to run because it doesnt have enough
permissions.
process = new System.Diagnostics.Process();
process.StartInfo.UseShellExecute = true;
process.StartInfo.RedirectStandardOutput = false;
process.StartInfo.FileName = "pskill.exe";
process.StartInfo.Arguments = "consoleappserver.exe";
process.Start();
I want to minimize the security risk of opening security to allow this to
run,
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 [url]http://www.sysinternals.com[/url] 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.
-Simon
Simon Weaver Guest
-
restarting a bad made sw
hi, I have to restart, when i hit a key, an swf movie, but i cant'use rewind because this movie is made so bad (its a movieclip on frame 1, then... -
restarting a bad made swf
hi, I have to restart, when i hit a key, an swf movie, but i cant'use rewind because this movie is made so bad (its a movieclip on frame 1, then... -
Restarting HDR
I know i've asked everything there was to this but here's some more. My server is set up for 20 logical log files. Assume the uniq ids are also... -
Restarting
I am running XP Home with a P4 1.6GHZ. The machine is constantly restarting itself. I have replaced the processor and power supply and do not have... -
Computer keeps restarting !
you might 'deselect - automatic restart' if on go start/right click - my computer/properties/ go advanced - tab/ go startup and recovery -...



Reply With Quote

