Process.Start permissions - doesn't get executed on iis7 server

纵然是瞬间 提交于 2020-01-02 08:01:32

问题


I have a website (asp.net mvc) that uses asp.net impersonation, i imperonsate an administrator user using the web.config element:

  1. I try to execute a process through Process.start (i tried to start a .bat file).
  2. I enabled interaction with desktop for iis admin service.
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!