Throw exception if no host is configured