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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrtie a WebService .EXE

Status
Not open for further replies.

PeterSC

Programmer
Mar 14, 2002
10
ES
Hi!
How should I write a WebService in C# (with Visual Studio.NET), which servers to execute or launch a program or file .exe.

This code I dont´t serve:

[WebMethod]
public void Ejecutar()
{
System.Process.Start("C:\\psc.bat");
}

Some solution, please?

Thanks.
 
I think you might have a security-related problem. A web service has to run anonymously, but when you call System.Process.Start, it's not letting an anonymous user run the program (that would be unsafe).

There was an article in MSDN magazine a month or two ago that talked about security in .NET.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top