Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process.GetProcess("appname") via a web service

Status
Not open for further replies.

NewFromMattel

Programmer
Jun 24, 2003
41
US
I have written a web service for so I can start, stop, and get the "running" status of a .exe file. I used the Process class for this. But... I get an error that the web service can't perform the function on the process (basically just creating the process object) because of access denied. So... how do I handle this?

Thanks
 
In order to do this, your web service pretty much needs full permissions. But web services run under the IIS account, so you'll need to explicit grant it permission using the .NET configuration utility.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Can you think of a way around this? I also compiled a .exe file to do everything. But I can't seem to get it to return the status I want. So I can't check the status of the program. That is working by executing it from a web page.

Any other thoughts?
 
Have you taken a look at .NET's WMI (Windows Management Interface) support? You should be able to see if a program is running on a remote machine (again, assuming you have the appropriate permissions on the domain).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top