none
How to execute notepad using wcf hosted in IIS? RRS feed

  • Question

  • im using below code in my wcf service to execute notepad .

     public void ExecuteApp()
            {
               Process p = new Process();
                p.StartInfo.FileName = "notepad.exe";
                p.Start();
            }

    and i call it from a remote machine But nothing happens in the Wcf hosted machine.

    Saturday, February 7, 2015 5:23 AM

Answers

  • Hi Santhanu,

    When we host our WCF service in IIS, being a server, IIS requires and allows no user interaction and works also if no user is logged in, in that context there is no UI to host our notepad applications or other UI enabled applications, we could execute a process for elaboration or other batch jobs but not render a windows UI application, because Windows Explorer is not loaded for you and there is no place to render your process's UI.

    For more information, please try to refer to the following similar thread:
    http://stackoverflow.com/questions/5680410/why-remote-process-is-not-launching-from-wcf-call-to-process-start-in-interactiv .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, February 9, 2015 11:00 AM
    Moderator