Invoke exe through web service

Hi,
How can i invoke the Exe Through Windows service,Is it possible.Help me..
Thanks
justin



Answer this question

Invoke exe through web service

  • BrianMcCashin

    Hi Justin,

    Have you found an answer I am having the same issue. My

    System.Diagnostics.Process was working, but I wasn't going through IIS. Once I started to go through IIS, I was no longer able to get the process to run.

    Thanks!



  • TheViewMaster

    You need to change the invoking method of the service go o control panel->Administrative Tools->Services->selecty your service ight click on it and say properties.

    in the logon tab check "interact with desktop" and click on apply

    restart the service.



  • Zero_

    Justin,

    Could you explain what it is you want to achieve

    Any .NET code could (potentially) run an executable by using System.Diagnostics.Process however a lot depends on the security configuration.

    Also, in what way is this related to Windows Live Writer If it's not you should move this post to another forum.

    Cheers


  • imed-deborah

    Hi

    I have the same problem that Justin has

    It is that When you invoke an application from a Windows service it runs , you can see the process in thetask manager but you can not see any windows (eg. notepad, Iexplorer) so How can we invoke a Windows application and see it GUI

    thnks

    kenny



  • Maheep

    hello

    i am trying to run an exe file using web services. have made changes in machine.config file, tried with user, system, and machine usernames in process model, but nothing works.

    Have used System.Diagnostics process to run an exe file, but could not, not even notepad or calc.

    thanks
    samir mackwan


  • qqterry123

    I'm having the issue too. I want to run an exe from a webservice, and the thing just doesn't work. It never gets executed and the Process says it never exits.

  • eugene7_11

    There is a KB article regarding the same issue. I do not remember the article number. The following are the step you may follow:

    1) Execute the aspnet_wp.exe process as "System" User. To do this..

    Edit the machine.config file and add username and password tags in Process model section.

    username="System" password="autogenerate"

    save. Restart the application.

    I am sure you will be able to invoke the exe from a webservice.


  • Invoke exe through web service