Reputation: 307
I'm running an executable on the local file system using Process.Start() from an ASP.NET web application. This runs correctly and does what I expect it to, the problem is that it takes around 40 seconds before the exe starts after Process.Start() has been called.
When I run the exe from the command line it only takes a few seconds to complete its work.
Does anyone know what is causing this long delay when I use Process.Start()?
Thanks in advance!
Robert
Upvotes: 0
Views: 724
Reputation: 307
The issue seems to have been caused by trying to run the exe using the web application's default worker process account. I have updated the ProcessStartInfo to use a pre defined user account with restricted permissions on the server and the exe ran almost instantly.
Upvotes: 2