I need to write a simple web service to run a simple application upon client invocation.
I wrote the following code customizing the code provided by the default wizard.
[WebMethod]
public string StartBatchFile()
{
try
{
System.Diagnostics.Process.Start("c:\\wace23b4i.exe");
}
catch
{
return "error";
}
return "Success";
}
The code compiles and runs, but when I invoke the service, even if I get back the message success, nothing happens!!
I hope someone could tell me something soon about this stupid problem.
Thx ya all!