Re: Launch an interactive window from ASP.NET

From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 01/26/05


Date: Wed, 26 Jan 2005 12:06:23 -0800

Normally a server is running without anyone attending it.
Therefore the default ASPNET user account does not have a desktop.
However, not all hope is lost.
Go into Administrative Tools, Services.
Right click on the WWW Service and select properties.
On the "Log On" tab you'll see a checkbox that says "Allow service to
interact with desktop".
Play around with these settings and you might be able to get it to work the
way you envision.

-- 
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Eric" <ericp@nextivr.com> wrote in message 
news:O3hXTE%23AFHA.1564@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> I need to allow a web page to launch an interactive program on the web 
> server.  For this example, I'd like to have the ASP.NET open notepad on 
> the asp server, so the current logged-in user can see it.
>
> Here's the code I have implemented.  Notepad starts, but is not visible on 
> the server desktop.
>
> ****************************
> Dim commandPrompt As New System.Diagnostics.Process
> Dim ps As New System.Diagnostics.ProcessStartInfo("notepad.exe")
>
> ps.UseShellExecute = False
> ps.RedirectStandardInput = False
> ps.RedirectStandardOutput = False
> ps.RedirectStandardError = False
> ps.WorkingDirectory = "c:\"
> ps.CreateNoWindow = false
> ps.WindowStyle = 3
>
> Dim proc As System.Diagnostics.Process = commandPrompt.Start(ps)
>
> ****************************
>
> Thanks for your help.
>
> Eric
> 


Relevant Pages

  • Re: .NET Apps stop working after running asp_regiis -i
    ... the remote IIS 6.0 server. ... The aspnet user account kept getting locked out on the remote box, ... DbConnection owningObject) ... owningConnection, DbConnectionPool pool, DbConnectionOptions options) ...
    (microsoft.public.dotnet.framework.aspnet)
  • .NET Apps stop working after running asp_regiis -i
    ... the remote IIS 6.0 server. ... The aspnet user account kept getting locked out on the remote box, ... DbConnection owningObject) ... owningConnection, DbConnectionPool pool, DbConnectionOptions options) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Launch an interactive window from ASP.NET
    ... I need to allow a web page to launch an interactive program on the web ... I'd like to have the ASP.NET open notepad on the ... asp server, so the current logged-in user can see it. ... Dim commandPrompt As New System.Diagnostics.Process ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: web project debugging problem
    ... Add the ASPNET user account to the Admin group. ... you do not have permissions to debug the server. ... verify that you are a member of the 'Debugger Users' group on the server. ...
    (microsoft.public.vsnet.setup)
  • If no ASPNET user account, can I use Global.asax for application-level error trapping?
    ... Using Visual Studio 2005, SQL Server 2000, and ASP.NET/VB.NET for a Web ... Adding the ASPNET user account back into SQL Server on the Test Server ... There are other options for application-level error handling, ...
    (microsoft.public.dotnet.framework.aspnet)