I’m using an ASP.NET application to execute an external executable (EXE) file with command line parameters. The EXE is supposed to generate a JPG file with some text on it. While the process exits successfully (ExitCode 0), the text on the JPG file appears as ???
instead of the expected text.
Here’s the code I’m using to start the process:
// Begin code ...
var p = new Process();
p.StartInfo.FileName = image_bestPumps_exe_name;
string workingDirectory = Path.GetDirectoryName(image_bestPumps_exe_name);
p.StartInfo.WorkingDirectory = workingDirectory;
p.StartInfo.Arguments = params1;
p.Start();
// End code ...
- The EXE works perfectly when executed from the command prompt.
- The EXE also works correctly when executed from a Delphi application.
- I have tried running the ASP.NET application with
runas
and setting the working directory, but the issue persists.
Any help or suggestions ?