Jump to content

wcf problam - fails to run proccess (exe) from ws function

- - - - -

  • Please log in to reply
No replies to this topic

#1
itay

itay

    Newbie

  • Members
  • Pip
  • 4 posts
hello all,

I wrote a wcf service web site, everything works fine except when I try to run an exe
on local path.

it works ok localy but when I'm calling the ws it just doesn't work.

here is the call code:
private void runCalcExe(string exePath)
{
try
{
Process p = new Process();
p.StartInfo.FileName = @exePath;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.Arguments = this._in_id.ToString();
p.Start();
p.WaitForExit();
}
catch (Exception exc)
{
Console.WriteLine(exc.StackTrace);
return;
}
}
here is the execption: at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at WcfServiceLibrary1.OzarClac.runCalcExe(String exePath) in C:inetpubwwwrootWcfServiceLibrary1WcfServiceLibrary1IService1.cs:line 546




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users