WCF service deploy on IIS failed to run excel application on server side RRS feed

  • Question

  • WCF deploy on IIS8.0, an interface is to execute application on server side

    the code of server side as following:

    public string RunCommand(String cmd)
    Process p = new Process();
    p.StartInfo.FileName = "cmd.exe";

    p.StartInfo.Arguments = "/c " + cmd;
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.RedirectStandardInput = true;
    p.StartInfo.RedirectStandardOutput = true;
    p.StartInfo.RedirectStandardError = true;
    p.StartInfo.CreateNoWindow = false;

            return p.StandardOutput.ReadToEnd();        

    the client side will call RunCommand("C:\\Do_Work.xls"). In our case, the parameter is "C:\Do_Work.xls", run  Excel VBA code  on server

    Question is:

    How can we run Do_WORK.xls  by WCF on IIS as click DO_Work.xls on server  to open and execute it???

    • Edited by mathgary Sunday, July 14, 2013 1:51 PM
    Sunday, July 14, 2013 1:48 PM