I had this question solved:
Define "dynamic" enum
Which I needed to get some Codes defined in the web.config from a class in App_Code for easy call. Well, the problem now is that I need to use this same Codes inside my business classes (and they won’t access Web.config keys..
Accepting any solutions or different approaches
If you are building a non-web app, the code in the previous sample:
will read from your .exe.config file just like it reads from the web.config file.