If I define application level settings (using Properties.Settings) within a class library, can I change those settings once that dll is deployed to an app? If so, how? Do I just create the equivalent setting in web.config to override it?
I found that you have to declare a section for the class library dll in the web.config. So, if your namespace is "Company.Application.DataLayer" you would need to have a "Company.Application.DataLayer.Properties.Settings" section declared within your "applicationSettings" section.
Note: To have that section be recognized, you must also declare it within the applicationsettings sectionGroup of your web.config.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With