Executing external process from ASP.NET Web application

  • Thread starter Thread starter arc
  • Start date Start date
A

arc

I have tried working on this based on the article
(http://support.microsoft.com/?kbid=306158) as proposed by Martin, still
doesnt seem to like it.

1. Have used <identity impersonate="true" />
2. Did this - Change the account that the Aspnet_wp.exe process runs under
to the System account in the <processModel> configuration section of the
Machine.config file.
3. Tried this - Grant the "Act as part of the operating system" privilege to
the ASPNET account (the least privileged account).

Still doesnt execute even a simple IE or Notepad.exe, here is the code i use
that opens up perfect with Windows Forms application.

/********************* Process execution code
***************************************/

System.Diagnostics.Process myproc= new System.Diagnostics.Process();
Process.Start("IExplore.exe", www.microsoft.com);

/********************* Process execution code
***************************************/

When run with Web App, the target executable runs in the process but doesnt
show up or execute.

What could be the problem?

Regards,
Arc
 
Arc,

The aspnet_wp.exe process does not interact with the desktop, as there might
be not a single desktop (if there is no logged in user) or there may be many
desktops. That's why you don't get shown any windows.

However the iexplore.exe process gets started.

Greetings
Martin
 
Back
Top