PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Starting UI process(e.g. calc.exe) from an aspx/C# page

Reply

Starting UI process(e.g. calc.exe) from an aspx/C# page

 
Thread Tools Rate Thread
Old 23-02-2005, 02:39 PM   #1
=?Utf-8?B?aGFiZGFsbGE=?=
Guest
 
Posts: n/a
Default Starting UI process(e.g. calc.exe) from an aspx/C# page


Im trying to start a process e.g. calc.exe using
System.Diagnostics.Process.Start() from an aspx page to call an
executable on the server. The following is the code I use:

Process p = new Process();
p.StartInfo.FileName="c:\\windows\\system32\\calc.exe";
p.StartInfo.CreateNoWindow=false;
p.StartInfo.UseShellExecute=false;
p.EnableRaisingEvents=true;
p.Start();

I simply cannot see the application(not visible) even though it is
running(I can see it in the Windows Task Manager in the Processes tab). I
tried with notepad.exe and get the same problem. Do I have to do something
with the config file?

Will appreciate any input.

Thanks.
MA

  Reply With Quote
Old 23-02-2005, 03:30 PM   #2
Finn J Johnsen
Guest
 
Posts: n/a
Default Re: Starting UI process(e.g. calc.exe) from an aspx/C# page

habdalla wrote:

> Will appreciate any input.


Sounds like it's got to do with privileges for the IIS user launching
your webapp. Try configuring your webapp in the IIS config to run as
administrator for example.

/Finn
  Reply With Quote
Old 24-02-2005, 02:00 PM   #3
Pat A
Guest
 
Posts: n/a
Default Re: Starting UI process(e.g. calc.exe) from an aspx/C# page

The application is running in the context of the web server user. For
example, IWAM_machinename. You are probably logged on as
administrator. Thus, you cannot see the application interface.

Why would you ever want to start a process on the server that has a
user interface anyway? You should review the design of your system.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off