I think I have a security issue here but can't seem to get around it. I am running IIS 7.5 with an application pool named "MyAppPool." I am then calling a program from C# code, PDFCreator.exe, which reads from C:\DWF and then writes C:\DWF\DWF.PDF.
I have given IIS AppPool\MyAppPool full rights to PDFCreator.exe as well as the C:\DWF directory. When C# creates the process and calls PDFCreator.exe, it simply starts a process showing MyAppPool as owner but never opens the application.
Can anyone chime in on anything security-related I may be missing?
ProcessStartInfo processStartInfo = new ProcessStartInfo(@"c:\program files (x86)\pdfcreator\pdfcreator.exe");
processStartInfo.Arguments = @"/PF""c:\dwf\dwf.dwf"" /NoStart";
processStartInfo.RedirectStandardInput = true;
processStartInfo.RedirectStandardOutput = true;
processStartInfo.RedirectStandardError = true;
processStartInfo.UseShellExecute = false;
Process process = Process.Start(processStartInfo);
// Read the output stream first and then wait
string output = process.StandardOutput.ReadToEnd();
string errors = process.StandardError.ReadToEnd();
Response.Write(output + errors);