Local web.config settings not seen

nemteanu

Newcomer
Joined
Aug 2, 2004
Messages
2
I have a web.config in the root of my application and another web.config in one sub-directory. In the second web.config there are specific setting for pages in that sub-directory. If I navigate to the page in the sub-directory using Response.Redirect the settings in the sub-directory web.config are visible (using ConfigurationSettings.AppSettings["something"]) but if I navigate using Server.Transfer the settings in the web.config in the sub-directory are not seen. It is like the application does not move the “focus” on the sub-directory. I could not find any documentation about this behaviour. If anyone has the explanation it would be very appreciated.

This is the local web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<appSettings>
<add key="FiscalYear" value="2005" />
<add key="ExpandSubaccounts" value="Yes" /> <!-- Yes|No -->
</appSettings>

</configuration>

Thank you
 
Back
Top