-
Jun 8th, 2009, 06:12 AM
#1
Thread Starter
PowerPoster
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.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jun 9th, 2009, 05:51 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|