![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I know this is an asp.net question but I got no answers there. How do you start a new visible process from a asp.net page? I can use: System.Diagnostics.Process.Start ("mspaint.exe"); from Main() in console application and it works fine. When I put it in the Page_Load procedure of an aspx page, the process is started, as viewed from TaskManager, but nothing is visible. |
#3
| |||
| |||
|
|
"Wally" <Wally (AT) discussions (DOT) microsoft.com> wrote in message news:C75047B3-1C95-479A-853C-9928C9E0DC90 (AT) microsoft (DOT) com... I know this is an asp.net question but I got no answers there. How do you start a new visible process from a asp.net page? I can use: System.Diagnostics.Process.Start ("mspaint.exe"); from Main() in console application and it works fine. When I put it in the Page_Load procedure of an aspx page, the process is started, as viewed from TaskManager, but nothing is visible. Hi Wally, This behavior is expected since the process that you have started belongs to some other instance of the desktop. Every single user e.g. ASPNET account, has its own desktop instance and special permissions are needed for accessing the desktop instance of other accounts. It seems pretty unnatural that you need to display paint application via web site call. Can you explain what are you trying to achieve, please? Regards, -- Martin Kulov http://www.codeattest.com/blogs/martin MCAD Charter Member MCSD.NET Early Achiever MCSD |
#4
| |||
| |||
|
|
Martin Thanks for your interest, I understand what you say, I didn't realise the relationship between the ASPNET account and desktops .. I am actually trying to zip a hierarchy of files on the server, using Winzip command line utility, I was using mspaint just to test the process.start call. When I saw nothing appear I thought there was a problem. |
#5
| |||
| |||
|
|
"Wally" <Wally (AT) discussions (DOT) microsoft.com> wrote in message news:16CFFBF1-6302-4C8D-AD88-F1FC36206E99 (AT) microsoft (DOT) com... Martin Thanks for your interest, I understand what you say, I didn't realise the relationship between the ASPNET account and desktops .. I am actually trying to zip a hierarchy of files on the server, using Winzip command line utility, I was using mspaint just to test the process.start call. When I saw nothing appear I thought there was a problem. Hi Wally, every single user has a designated desktop to run its applications at. The basic idea is that the process is actually running but you can not see its UI because it is started on other desktop. Just find a way to test your work without UI elements and you will be fine. For example create a trace file and log all relevant actions there. Best regards, -- Martin Kulov http://www.codeattest.com/blogs/martin MCAD Charter Member MCSD.NET Early Achiever MCSD |
#6
| |||
| |||
|
|
Hi Wally, every single user has a designated desktop to run its applications at. The basic idea is that the process is actually running but you can not see its UI because it is started on other desktop. Just find a way to test your work without UI elements and you will be fine. For example create a trace file and log all relevant actions there. Best regards, -- Martin Kulov http://www.codeattest.com/blogs/martin MCAD Charter Member MCSD.NET Early Achiever MCSD |
#7
| |||
| |||
|
|
Hi! I want to know if it is possible to open a UI of a process calling a webservice. I read the answer. If I logon (I've changed the local policy, and webservice and client are all local) as the ASPNET user, I think I have the same desktop. I even joined the ASPNET user to the administrators (I reset the password too). But I can't still open an cmd window, although I see the process. Is it possible? How? Hi Wally, every single user has a designated desktop to run its applications at. The basic idea is that the process is actually running but you can not see its UI because it is started on other desktop. Just find a way to test your work without UI elements and you will be fine. For example create a trace file and log all relevant actions there. Best regards, -- Martin Kulov http://www.codeattest.com/blogs/martin MCAD Charter Member MCSD.NET Early Achiever MCSD |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |