exe does not complete under IIS



I have the code below which sets arguments for an executable (exe) and
run it in a web page. the code works fine if in debug mode and I can
run the executable through command prompt but under IIS control it
appears that it does not execute and I can not find any errors. it has
got to be something about permissions but I have execute permissions
set to scripts and executables set. I have assigned full permissions
to ASPNEt, Network Service and host of other accounts without any
luck. The process returns a value of "0" after completion but it
really does not do what it is supposed to do. Does anybody have any
suggestions about what could be wrong?

Process process = new Process();
process.StartInfo.FileName = MyExecutable;

process.StartInfo.WorkingDirectory = new
FileInfo(MyExecutable).DirectoryName;
process.StartInfo.CreateNoWindow = true;

process.StartInfo.Arguments = arguments;

process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardError = true;



process.Start();

Trace.Warn("Process Started");


try

{

if (!process.WaitForExit(waitForExitMilliseconds))
{

ShowError("The application did not complete within an appropriate time
period.");
}

else

{

string executableErrorMessage = process.StandardError.ReadToEnd();if
(executableErrorMessage.Length != 0)
{

Trace.Warn(executableErrorMessage);

ShowError("An error occurred running the executable: " +
executableErrorMessage);
}
.



Relevant Pages

  • Re: Browsers special handling of EXE files
    ... Explorer would then download the EXE. ... runtime tried to download all of your other assemblies, ... allowing these remote EXEs to execute and with more permissions than 1.0. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: IE handling of exe files
    ... Explorer would then download the EXE. ... runtime tried to download all of your other assemblies, ... allowing these remote EXEs to execute and with more permissions than 1.0. ...
    (microsoft.public.dotnet.general)
  • Re: CGI cant spawn process under IIS6
    ... You do not need to change the ACL on CMD.EXE to spawn new processes -- ... and this will launch that EXE without using CMD.EXE to execute ... that I've got to change the permissions on ...
    (microsoft.public.inetserver.iis.security)
  • Solaris 10 autofs directory permissions - Solution
    ... the fact that my map file has 755 permissions not 644. ... If the execute permission is set, it becomes an executable map which is ... map is expected to return the content of an automounter map ...
    (SunManagers)
  • Re: Rights to execute jobs?
    ... Does anyone know if the rules surrounding stored procedure permissions apply ... Does this apply to a proc calling sp_start_job so that I ... raise the alert, so it could be anyone on the server. ... is that a group needs to not be an admin but still be able to execute ...
    (microsoft.public.sqlserver.security)