System.UnauthorizedAccessException: невозможно выполнить запись в раздел реестра.
Код: Выделить всё
RegistryKey key = Registry.LocalMachine.OpenSubKey ("SYSTEM\\CurrentControlSet\\services\\Tomcat7");
key.SetValue ("Start", 2, RegistryValueKind.DWord);
Подробнее здесь: https://stackoverflow.com/questions/103 ... sexception