PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

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

 
 
=?Utf-8?B?aGFiZGFsbGE=?=
Guest
Posts: n/a
 
      23rd Feb 2005
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
 
 
 
 
Finn J Johnsen
Guest
Posts: n/a
 
      23rd Feb 2005
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
 
Pat A
Guest
Posts: n/a
 
      24th Feb 2005
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load and process an aspx page from an embredded resource BooGhost Microsoft ASP .NET 0 16th Jul 2008 12:16 AM
New Process from aspx page =?Utf-8?B?V2FsbHk=?= Microsoft ASP .NET 0 18th Feb 2006 11:56 AM
Why crawler don't get to my aspx page unless the Work Process is started? Nicolas Microsoft ASP .NET 0 28th Jan 2005 02:58 AM
Starting a WindowsForm aaplication from an aspx page =?Utf-8?B?SGVucnk=?= Microsoft ASP .NET 0 16th Sep 2004 03:57 PM
from my aspx page how do I start a process on the local PC? =?Utf-8?B?U3RldmVuIEJyb29rcw==?= Microsoft VB .NET 4 23rd Nov 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 PM.