internal static DeploymentLocationSettings GetLocationByHostNameChecked(DeploymentLocationsSection section, string hostName) { DeploymentLocationSettings location = section.GetLocationByHostName(hostName); if (location == null) { throw new ConfigurationErrorsException(String.Format("Current deploymentLocation cannot be determined for host name: \"{0}\"", hostName)); } return(location); }