|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Starting UI process(e.g. calc.exe) from an aspx/C# pageSystem.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 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 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.
Other interesting topics
Bug in X509Certificate.GetSerialNumber and X509Certificate.GetSerialNumberString
Custom exceptions DrawString size? Cant install dotnet framework on my pc dotnet and unix listview, gdi objects, GC ASP.NET Version 1.1 issue Controlling number of worker threads when using asynchronous socke windows forms leak Load framework first time |
|||||||||||||||||||||||