public static void RestartIIS()
{
string path = Environment.GetFolderPath(Environment.SpecialFolder.System) + @"\iisreset.exe";
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(path);
info.UseShellExecute = true;
System.Diagnostics.Process.Start(info);
}