static Config() { string path = DirectoryEx.GetApplicationDirectory(); var configPath = new FileInfo(Path.Combine(path, "spkl.crmsvcutil.config")); if (!configPath.Exists) { throw new Exception(String.Format("Cannot find config file at '{0}'", configPath.FullName)); } _settings = GetSettings(configPath.FullName); }