Results 1 to 2 of 2

Thread: Start a process in ASP.Net site

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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
  •  



Click Here to Expand Forum to Full Width