HighTechTalks DotNet Forums  

Starting new process from aspx page

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Starting new process from aspx page in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Wally
 
Posts: n/a

Default Starting new process from aspx page - 02-20-2006 , 07:50 AM






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. I've tried all
sorts of StartInfo strings, still the same.
I've tried all sorts of applications, including a .bat file with only a
PAUSE statement, still wont open a command window.
What I really want to do is open the winzip command line utility to zip some
files up, but that seems irrelevant until I can gain control of this action.

Any ideas would be appreciated

Reply With Quote
  #2  
Old   
Martin Kulov
 
Posts: n/a

Default Re: Starting new process from aspx page - 02-20-2006 , 02:13 PM






"Wally" <Wally (AT) discussions (DOT) microsoft.com> wrote

Quote:
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




Reply With Quote
  #3  
Old   
Wally
 
Posts: n/a

Default Re: Starting new process from aspx page - 02-21-2006 , 07:31 AM



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.

Maybe it will work, so long as I need no user interaction.

Any response appreciated.


"Martin Kulov" wrote:

Quote:
"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




Reply With Quote
  #4  
Old   
Martin Kulov
 
Posts: n/a

Default Re: Starting new process from aspx page - 02-21-2006 , 05:21 PM



"Wally" <Wally (AT) discussions (DOT) microsoft.com> wrote

Quote:
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




Reply With Quote
  #5  
Old   
Wally
 
Posts: n/a

Default Re: Starting new process from aspx page - 02-22-2006 , 01:42 AM



Martin

Thanks for the info.

regards

wally

"Martin Kulov" wrote:

Quote:
"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




Reply With Quote
  #6  
Old   
Jorge Alves
 
Posts: n/a

Default Re: Starting new process from aspx page - 11-30-2007 , 12:08 AM



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?


Quote:
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




Reply With Quote
  #7  
Old   
Tiago Halm
 
Posts: n/a

Default Re: Starting new process from aspx page - 12-06-2007 , 05:29 PM



Jorge,

Its not about being possible, its not even logic or expected. Why would you
need a page to do open a UI on the server side? No one will be able to
interact with that UI anyway ...

Tiago Halm

"Jorge Alves" <JorgeAlves (AT) discussions (DOT) microsoft.com> wrote

Quote:
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






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.