Reputation: 717
I have a WebService that a program should run any exe. Made the implementation of the service, I made a test case and the process works.
But if I call the WebService, the exe is not initialized. I can not ententer the reason it does not boot
Configuracoes.Configuracao.URL = "C:\WA.exe";
code:
protected override object DoConsulta(ArgumentoDaConsulta argumentos)
{
try
{
var exec = Configuracoes.Configuracao.URL;
Process.Start(exec);
return exec;
}
catch (Exception ex)
{
return ex.Message;
}
}
Upvotes: 0
Views: 95
Reputation: 884
Go to services.msc, right click on your service, and on tab LOGON check allow service to interact with the desktop.
Upvotes: 2