Configuration Files Location Problem
-
hi there, i'm building a small class library which will be used from classic asp (com interop), asp.net and for testing purposes from my console test application. the class library requires an app.config which i have created. a couple of settings are added to it. now my problem: in my console test application i've added a reference to the class library. everything works fine except that the class library doesn't read the configuration settings as i would expect. the values read using the
ConfigurationManager.AppSettings["MySetting"]
method always returnnull
strings. i've been working with app.config files before and it always worked fine. i guess this might have to do with the hierarchy of configuration settings. i guess, if i would add the configuration file to the console app instead of adding it to the class library, everything would work fine. but this is not what i need. i need the configuration to be attached to the class library. does this have anything to do with installing the class library in the gac? do i need to do that? and if so, how do i do that? thanks for reading thus far. i hope i explained the problem properly. my english is not the best. any help is greatly appreciated./matthias
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]