Posted on: 4/5/2011 11:26:06 AM | Views : 454

I should start by saying I know that the below can cause security issues.  This system is for me alone.  I don't intend to ever let anyone else use it.
As part of a much larger project, I need to run an executable (such as notepad.exe) from the Page_Load() event.  When I try this within Visual Studio, it works, I think because Visual Studio's server program is run under my name and is therefore able to launch notepad.exe under my name.
But if I try to run this from IIS, w3wp.exe runs under "Default App Pool," so notepad.exe gets run on behalf of Default App Pool, and notepad.exe never appears as a window.  Task Manager shows it as running under "Default App Pool," but I can't get to it.
I'm using System.Diagnostics.Process.  If there is a better method, I'm open.
So how can I get notepad.exe to open normally from an ASP.NET page?
...

Go to the complete details ...