web.config in subfolder
-
Hi all! Please help me in my problem. :) I'm developing a 'plugin' to the web-site. I can't change any files in root web-site :(. My aspx files are placed in ~/plugins/task/ folder. I create web.config in this folder with appSettings and user section. In code-behind file i tried to read application settings written in web.config, but i can't see them :((. My user section is also unavailable. Is there a way to accomplish my task or I should use resource files for my settings? :^)
-
Hi all! Please help me in my problem. :) I'm developing a 'plugin' to the web-site. I can't change any files in root web-site :(. My aspx files are placed in ~/plugins/task/ folder. I create web.config in this folder with appSettings and user section. In code-behind file i tried to read application settings written in web.config, but i can't see them :((. My user section is also unavailable. Is there a way to accomplish my task or I should use resource files for my settings? :^)
-
As far as I know, the web.config needs to be referenced in the root web.config in order to get loaded properly.
-
As far as I know, the web.config needs to be referenced in the root web.config in order to get loaded properly.
For a web application this is not the case. Check the following link for detailed article on web.config. http://www.sitepoint.com/article/web-config-file-demystified The section relevant to this check "A Few Other Issues" " * A Web application can contain more than one Web.config file. The settings in a file apply to the directory in which it's located, and all child directories. Web.config files in child directories take precedence over the settings that are specified in parent directories. * Web.config files are protected by IIS, so clients cannot get to them. If you try to retrieve an existing http://mydomain.com/Web.config file, you'll be presented with an "Access denied" error message. * IIS monitors the Web.config files for changes and caches the contents for performance reasons. There's no need to restart the Web server after you modify a Web.config file. " Coming to the original issue, can you post your web.config file.
i Think, i Wait, i Fast
rAm -
For a web application this is not the case. Check the following link for detailed article on web.config. http://www.sitepoint.com/article/web-config-file-demystified The section relevant to this check "A Few Other Issues" " * A Web application can contain more than one Web.config file. The settings in a file apply to the directory in which it's located, and all child directories. Web.config files in child directories take precedence over the settings that are specified in parent directories. * Web.config files are protected by IIS, so clients cannot get to them. If you try to retrieve an existing http://mydomain.com/Web.config file, you'll be presented with an "Access denied" error message. * IIS monitors the Web.config files for changes and caches the contents for performance reasons. There's no need to restart the Web server after you modify a Web.config file. " Coming to the original issue, can you post your web.config file.
i Think, i Wait, i Fast
rAm -
Hi Diablo, I assume you have not renamed the file web.config to something else. In case you have renamed it, make it as web.config. If it is alright, I don't see any issue with the .config file. Might have to dig a bit little deep to find a fix.
rAm i Think, i Wait, i Fast -- Siddartha
-
Hi Diablo, I assume you have not renamed the file web.config to something else. In case you have renamed it, make it as web.config. If it is alright, I don't see any issue with the .config file. Might have to dig a bit little deep to find a fix.
rAm i Think, i Wait, i Fast -- Siddartha