I've written a small executable which I want to call another exe that is outside the wwwroot folder in IIS7. I first type in the URL http://localhost/test.exe
then the test.exe will call Process.Start(@"C:\test2.e
Now the problem is that test.exe does not have permission to execute because the user (the one who calls test.exe) does not have enough permissions. Of course I tried to fixed this but it didn't work.
I've tried many solutions and none have worked, here they are.
1. Changed Process.StartInfo.WorkingD
irectory to "C:\"
2. Impersonated Local User (had to use direct windows calls, this did not throw an exception but the test2.exe did not execute)
3. Added/Changed permissions (IUSER,Local Service,Local Users, Network Service, Everyone)
4. Changed Process.Startinfo.UseShell
Heres the exception thrown:
Unhandled Exception: System.ComponentModel.Win3
: Access is denied