System.Diagnostics.Process.Start(@"C:\Windows\System32\iisreset.exe");
This code will help you, but you may be denied access.
For you to not access denied:
- Right click project
- Add New Item
- Add application manifest file
- Change this section
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
To that
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Mehmet topรงu
source share