As
Zoltán Zörgő asked you, think before implementing something like this.
And if you really find a requirement, then refer -
ASP Net - Run Application (EXE) from ASP.Net C#[
^].
Quote:
Solution:
ASPNET user under which application is run should have appropriate security settings.
1. change local policies for APSNET user:
in WinXP: run secpol.msc
go to Local Policies->User Rights Assignment
find "Deny logon locally" and remove ASPNET user from it.
also find "Deny logon .. terminal" and remove ASPNET user from it.
2. Security for files.
if your application needs also to work with files (open, save, etc) you have to change security settings for the folders to allow user ASPNET modify nedeed files.
to do this:
- In Explorer right button mouse click the folder and select "Properties"
- In Security tab, add "ASPNET" in and give desired permissions (Read, Write, Execute, etc).
To test how it works without starting ASP.NET site you can try run in Windows command line:
runas /user:ASPNET "notepad.exe"
it asks you for the password of ASPNET user. enter the password.
if everything is done correct you will see opened application (notepad in our example) in new window.
I've tried this on my Windows XP Professsional and it worked fine.