Last post Apr 26, 2006 11:34 AM by homebru_trout
Apr 26, 2006 11:34 AM|homebru_trout|LINK
I've been working on modifying an existing custom module that we've written to make it more flexible during deployment and am having some issues with the vagaries of inheritance of config files through the application folder tree.
I have created a custom web.config file in my DNN module folder under desktop modules that contains custom configuration information for the module so that we do not have to modify DNN root web.config when rolling the module out. During page load, I request
information from a custom section in the DNN module web.config via the NameValueSectionHandler and am unable to access this information. I have verified correct XML schema and the information will be retrieved if I paste it into the root web.config.
To complicate the puzzle, I have several custom HTTPHandlers written and their information is stored in the relevant <httpHandlers> tag in the custom web.config for my module as well. These handlers are required to get the page to load the first time and
they fire flawlessly.
Has anyone run into this inability to get settings from a custom config file? I'm puzzled that the httpHandlers section gets handled natively while I'm unable to use GetConfig for other valid settings tags.