I have a WCF service that has to start a process using Process.Start() when a request comes in. however, everything works fine when I test it using the Visual Studio development server, but the process doesn’t start when I run it on a IIS server.
I’m guessing it has to do with permissions/privileges etc, but I can’t figure out what or where I need to give permission.
This is what I have now. help would be much appreciated
if (uri.StartsWith("http://"))
{
Process.Start(new ProcessStartInfo() { FileName = uri, UseShellExecute = true, Verb = "runas"});
}
I’ve connected my own user account (administrator account) to the WCF Service’s Application Pool. It works. Thanks to Rajesh for pointing out the Application pool’s useraccount.
Also, I had to remove ‘Verb = “runas”‘