问题
I have a website (asp.net mvc) that uses asp.net impersonation, i imperonsate an administrator user using the web.config element:
- I try to execute a process through Process.start (i tried to start a .bat file).
- I enabled interaction with desktop for iis admin service.
- I get no error, but nothing is really done. when i execute the .bat file locally- ot works perfectly.
回答1:
Sounds to me like you have a UAC problem try turning it off as a first stop...
http://www.petri.co.il/disable_uac_in_windows_vista.htm
let me know how you get on...
回答2:
Try to start your tools in "As Administrator" mode. (Right mouse click on short cut).
来源:https://stackoverflow.com/questions/8168976/process-start-permissions-doesnt-get-executed-on-iis7-server