public DeaConfig(INatsConfig natsConfig) { this.deaSection = (DeaSection)ConfigurationManager.GetSection(DeaSection.SectionName); this.localIPAddress = Utility.GetLocalIPAddress(deaSection.LocalRoute, natsConfig.Host); this.filesServiceUri = new Uri(String.Format("http://*****:*****@"SOFTWARE\Microsoft\InetStp")) { iisInstallPath = subKey.GetValue("InstallPath").ToString(); } } appCmdPath = Path.Combine(iisInstallPath, "appcmd.exe"); if (File.Exists(appCmdPath)) { hasAppCmd = true; } else { appCmdPath = null; hasAppCmd = false; } } catch { appCmdPath = null; hasAppCmd = false; } }