Start a process in ASP.Net site
Hi All,
I want to start a process (start a win32 application) through a asp.net site.
Code:
System.Diagnostics.ProcessStartInfo p =
new System.Diagnostics.ProcessStartInfo(app_path + app_name);
p.UseShellExecute = true;
p.Arguments = cmd_line;
p.WorkingDirectory = app_path;
System.Diagnostics.Process.Start(p);
In Visual Studio it works fine, but when the site host in IIS and access from another machine using a URL, not working. Any comments on that.
When I run the above code, I cannot see the application, process can run and it runs under the "NETWORK SERVICE" user name.
I heard something about user impersonate, but not clear how to do this.
Comments really appreciate.
Thanks a lot.
Re: Start a process in ASP.Net site
Common enough question - see if this applies to you:
http://support.microsoft.com/default.aspx/kb/555134