Re: Problems with Process.Start



If the process shows up in task manager, why do you think it didn't start?
Obviously, it did or it wouldn't be there. :) The problem here is that it
didn't show up in the same window station that you are in, so you don't see
the GUI because it was started by a different identity.

The thing to know about starting processes from within a web app is that
they MUST show no UI or require input from anyone or it will just sit there.
You don't want this. Notepad is a "semi-inappropriate" app to use for
testing with this since it is a GUI app.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Bill" <bill@xxxxxxx> wrote in message
news:n5oic2pv8fmnbvrtr03uivipq2pankcq8n@xxxxxxxxxx
I am trying to run an exe from my .net 2 website but I cannot get
even simple code to work outside of Visual studio debug

very simple example (but my exe behaves the same)

Dim myprocess As New Process
myprocess.StartInfo.FileName = ("Notepad.exe")

myprocess.Start()


In debug this open up a new notepad window - good - that is what I
want

But , using a browser, notepad does not show up. It does start since I
can see it in the task manager.

This suggests insufficient permissions with ASPNET but the examples on
the web suggest that this simple code should work anyway.

Am I missing something here?
Do I need to delve into impersonation etc or is there something wrong
with my IIS setup?

Suggestions would be much appreciated

Thanks

Bill


.



Relevant Pages

  • Re: I need help with an annoying problem at shutdown
    ... trying to start Notepad. ... .cmd files are Windows NT ... shows what's in the Task Manager ... either one is legitimate and it doesn't really matter which one is used. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Problem shutting down non-responding apps in XP SP1
    ... >because when this happens, I usually can't shut down the frozen app using ... Even Task Manager ... They're all free - and most pretty small, so they download quickly enough. ... Install and run Spybot. ...
    (microsoft.public.windowsxp.help_and_support)
  • Closed thread- Anyone seen this before?
    ... So it was technically on the desktop, which is why it showed up as an app ... I make it go away by closing the window - I get a little window that just ... 'Address' a text entry box and a little IE style 'Go' icon. ... Killing it in Task Manager kills explorer, which at least on my machine then ...
    (Incidents)
  • Re: VB making more threads than coded
    ... Background thread 1 ... started app I get 11 threads in task manager. ... I know I am making 1 thread per a CreateObject call because if I disable ...
    (microsoft.public.vb.winapi)
  • Re: Re: RE: System error when trying to print
    ... Uninstalling the app does not ... >> have no choice but to re-install Windows XP and start fresh. ... Publisher, notePad, plus a "test print" from the printer properties. ... I got the error message with all of them. ...
    (microsoft.public.windowsxp.print_fax)