ConfigurationManager.AppSettings Eigenschaft Gibt ein NameValueCollection-Objekt zurück, das den Inhalt des AppSettingsSection-Objekts für die Standardkonfiguration der aktuellen Anwendung enthält.So erhalten Sie web.config appSettings als ConfigurationSection nicht NameValueCollection
aber ich brauche AppSettingsSection Objekt, weil ich ihm configSource Eigenschaft in Runtime
Konnte nicht das Objekt des Typs ‚System.Configuration.KeyValueInternalCollection‘ werfen zu geben ‚System.Configuration.AppSettingsSection ". – Bohdan
@Bohdan ja du hast Recht Ich habe meine Antwort aktualisiert. – nemesv