hi folks
i'm developing a class library that is supposed to access to App.config an read/write some values. i'm allways getting an error "key is not defined...".
Dim test As String
Dim configurationAppSettings As System.Configuration.AppSettingsReader = New System.Configuration.AppSettingsReader
test = CType(configurationAppSettings.GetValue("pw", GetType(System.String)), String)
but using the same code inside a winform-application works perfect. so there must be some main diferences in accessing the config-file in class libraries or in winform-applications...
can anybody help me out please?
best regards
georg
i'm developing a class library that is supposed to access to App.config an read/write some values. i'm allways getting an error "key is not defined...".
Dim test As String
Dim configurationAppSettings As System.Configuration.AppSettingsReader = New System.Configuration.AppSettingsReader
test = CType(configurationAppSettings.GetValue("pw", GetType(System.String)), String)
but using the same code inside a winform-application works perfect. so there must be some main diferences in accessing the config-file in class libraries or in winform-applications...
can anybody help me out please?
best regards
georg