I have created a web service which calls an exe and i am consuming it using a web page,but the service and page are not calling the exe when run through the IIS.my code is:
ProcessStartInf o ProcessInfo;
Process pro;
ProcessInfo = new ProcessStartInf o("E:\\WebSite\ \freecell.exe" );
ProcessInfo.Cre ateNoWindow = true;
ProcessInfo.Use ShellExecute = false;
pro = Process.Start(P rocessInfo);
//ExitCo = pro.ExitCode;
//return "Testing";
string sMsg = string.Empty;
if(!pro.HasExit ed)
{
sMsg = " Started ";
}
else
{
sMsg = "Failed";
}
return sMsg;
ProcessStartInf o ProcessInfo;
Process pro;
ProcessInfo = new ProcessStartInf o("E:\\WebSite\ \freecell.exe" );
ProcessInfo.Cre ateNoWindow = true;
ProcessInfo.Use ShellExecute = false;
pro = Process.Start(P rocessInfo);
//ExitCo = pro.ExitCode;
//return "Testing";
string sMsg = string.Empty;
if(!pro.HasExit ed)
{
sMsg = " Started ";
}
else
{
sMsg = "Failed";
}
return sMsg;
Comment