I need to restart IIS from a C#/.NET application. This seems like a trivial issue, but I haven\'t had success thus far, and none of the answers from this question have worke
Alternatively (and cleaner) you could just use the ServiceController
class to subsequently stop and start the iis service.
You'll probably still need elevated privileges though... Impersonation might solve this; "impersonate an account with higher privileges." for restarting the service.
A good example of how to start/stop (and restart) a windows service can be found here: Start, Stop and Restart Windows Service (C#)