Groups | Blog | Home
all groups > asp.net security > july 2006 >

asp.net security : Problems with Process.Start


Bill
7/28/2006 12:56:27 AM
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

Joe Kaplan (MVP - ADSI)
7/29/2006 5:01:18 PM
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
--
[quoted text, click to view]

AddThis Social Bookmark Button