process StandardOutput Security Inquiry



Hi, I have an ASP.NET web application running with following code:
System.Diagnostics.Process runner = new System.Diagnostics.Process();


runner.StartInfo.FileName = "fc.exe";
runner.StartInfo.Arguments = strFile1 + " " + strFile2;


runner.StartInfo.WorkingDirectory = strFileRoot;
runner.StartInfo.UseShellExecute = false;
runner.StartInfo.RedirectStandardOutput = true;
runner.StartInfo.RedirectStandardError=true;
runner.Start();

StreamWriter sw = new StreamWriter(strFileRoot+
"\\diff.txt",false);
string strDiff = runner.StandardOutput.ReadToEnd();
thisPage.Trace.Write("running under:"+ Environment.UserName);
thisPage.Trace.Write("running
under:"+System.Security.Principal.WindowsIdentity.GetCurrent().Name);
thisPage.Trace.Write("fc.exe "+strFile1+"
"+strFile2+":"+strFileRoot+":"+runner.StandardError.ReadToEnd() +
":"+strDiff);
sw.Write(strDiff);
sw.Close();

runner.WaitForExit();
runner.Close();


It works fine on my windows XP + SP2 machine. However, on a windows
2003 server, strDiff is always empty and starndarderror is also empty.
I do notice it runs as aspnet on windows xp, but as network service
acount on 2003. So I impersonated to a domain account and also added
that domain account to admin groups on the windows 2003 machine, but
still strDiff returns empty. Please please please help.

Haiping

.



Relevant Pages

  • Re: Spyware/Recycle Bin Help
    ... I must have some kind of spyware, adware or a virus of ... I try to empty it and it makes the crumbling paper ... What to Know Before You Download and Install Windows XP Service Pack 2 ... Why you should use a computer firewall.. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Where is ftp.sco.com/pub/openserver ?
    ... They don't say it's empty. ... >| the other directories (although lib appears to be empty). ... So just quit Windoze, and from your SCO box, use ftp (if ... Well, I'm running Windows probably 99% of the time or better, so it's ...
    (comp.unix.sco.misc)
  • Re: IIS 6 CreateObject premissions issue
    ... >> tier system so I am confident that running on Windows 2000 what I am ... >> What I am attempting is to add a Windows 2003 server box to function as ... However if it is set for anonymous access using the ... >> end boxes to specifically allow the Domain account I attempted to use as ...
    (microsoft.public.inetserver.iis.security)
  • Re: Recycle Bin Wont Empty
    ... Run Error Checking then try to Empty the Recycle Bin. ... In My Computer or Windows Explorer, right-click the drive you want to ... the disk checking for the next time you restart your computer. ... to select Automatically fix file system errors. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Best DAW
    ... The RME cards are all on a single IRQ unshared with any other ... in the WINDOWS XP DAW OPTIMIZATION GUIDE from Tascam, ...
    (rec.audio.pro)