Executing external process from ASP.NET Web application

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
 
M

Martin Dechev

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top