public void Page_Load(object sender, EventArgs e) { ComputerName = Request.QueryString ["Computer"]; ServiceName = Request.QueryString ["Service"]; var indexDirectory = Path.GetFullPath(WebConfigurationManager.AppSettings ["IndexDirectory"]); var computersDirectory = Path.GetFullPath(WebConfigurationManager.AppSettings ["ComputersDirectory"]); Manager = new ComputerManager(indexDirectory, computersDirectory); StatusOutput = Manager.GetServiceStatusText(ComputerName, ServiceName); LogOutput = Manager.GetServiceLogText(ComputerName, ServiceName); }