string appconfig = System.IO.Path.Combine(context.Bundle.Location, "bin", context.Bundle.Name + ".dll.config"); ExeConfigurationFileMap map = new ExeConfigurationFileMap(); map.ExeConfigFilename = appconfig; Configuration config = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None); var supersockt = config.GetSection("superSocket");