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";

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

    Saturday, February 7, 2015 5:23 AM


  • 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: .

    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