Unanswered Invoking mpiexec with parameters

  • mardi 29 mai 2012 10:32
     
     

    Team,

    When I place the below code snippet in a sample web application and try to run in debug mode, it kicks-off well and executes the code successfully.

    When, I try to run the same from IIS, it neither throws an exception, nor executing successfully. I'm unsure about the issue, i suspect there is something to do with permission settings. Please let me know on any workaround for this.

    string argument1 = "mpiexec -hosts 1 domaniname.domain.com ";
                string argument2 = "\"" + @"C:\MPIEngineTasks.exe" +
                    "\"";
                string argument3 = "VEE_VALIDATE";
                string argument4 = " 124846215";
                string argument5 = " 1100587 ";

                string arguments = string.Format("{0} {1} {2} {3} {4}", argument1, argument2, argument3, argument4, argument5);

                Process mpiexec = new Process();
                ProcessStartInfo pinfo = new ProcessStartInfo(@"C:\Program Files\Microsoft HPC Pack 2008 SDK\Bin\mpiexec.exe");
                pinfo.Verb = "runas";
                //pinfo.WindowStyle = ProcessWindowStyle.Hidden;
                pinfo.WorkingDirectory = Environment.CurrentDirectory;
                pinfo.UseShellExecute = false;
                pinfo.RedirectStandardError = true;
                pinfo.RedirectStandardOutput = true;
                pinfo.Arguments = arguments;
                mpiexec.StartInfo = pinfo;

                mpiexec.Start();
                int procId = mpiexec.Id;
                mpiexec.WaitForExit();
                mpiexec.Close();


    Prasenna


    Prasenna

Toutes les réponses

  • mardi 8 janvier 2013 17:41
     
     

    Hi,

    Is your problem resolved? what error msg did you get when running the above program from IIS?

    Liwei