I am trying to run an exe file from another user account name, it shows following error
System.ComponentModel.Win32Exception: The requested operation req
Unfortunately, you cannot do
simultaneously.
Reason:
Verb
is only recognized when UseShellExecute = true
, butUseShellExecute = false
.More information:
I guess in your situation you will have to skip using runas
, but rather ensure that your application is already started with the correct user account/permissions. This should work, since processes started by elevated processes "inherit" elevation.