Web Service not invoking exe through IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhinavnaresh
    New Member
    • Feb 2008
    • 11

    #1

    Web Service not invoking exe through IIS

    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;
  • abcrawfo
    New Member
    • Apr 2009
    • 1

    #2
    Response to Invoking exe from webservice

    Did you ever get a response to this? I am having the exact same code problem
    Thank You!
    ancrawford@bern co.gov

    Comment

    Working...