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
The exception you're getting is most likely caused by the fact that the user you are trying to run this application as does not have administrative privileges.
If you run your application as an administrator account then it should automatically launch iisreset with administrative privileges without a UAC prompt or an error.
How you should go about running your process as an administrator is a separate issue. The most common way is to create an application manifest:
http://msdn.microsoft.com/en-us/library/ms235229.aspx