B
Billy Greening
What are the steps needed to give my webservice adequate security
priveledges to run an exe?
Here is my basic webmethod:
Process proc = null;
ProcessStartInfo procInfo = new ProcessStartInfo("Notepad.exe");
procInfo.UseShellExecute = false;
procInfo.CreateNoWindow = true;
proc = Process.Start(procInfo);
proc.WaitForExit();
return "ok";
With the 'wait for exit' piece in there, it never returns anything. If I
take that out, the 'ok' result comes up fine. Either way, notepad never
pops up.
I have found several people with the same issue when searching on google,
but haven't found any real answers. Any help is greatly appreciated.
Thanks,
Billy
(e-mail address removed)
priveledges to run an exe?
Here is my basic webmethod:
Process proc = null;
ProcessStartInfo procInfo = new ProcessStartInfo("Notepad.exe");
procInfo.UseShellExecute = false;
procInfo.CreateNoWindow = true;
proc = Process.Start(procInfo);
proc.WaitForExit();
return "ok";
With the 'wait for exit' piece in there, it never returns anything. If I
take that out, the 'ok' result comes up fine. Either way, notepad never
pops up.
I have found several people with the same issue when searching on google,
but haven't found any real answers. Any help is greatly appreciated.
Thanks,
Billy
(e-mail address removed)