web.config for sub applications

Discussion in 'ASP.NET 2.0' started by joelnet, Oct 17, 2006.

  1. Doh... just remembered.

    Given thehierarchical nature of the web.config files, you have tooverride the settings of the root/parent config file in the subdirectory setting even if its not a section you are interested in.

    For example if there is a pages section with theme and masterpage in the parent web.config you will need to recreate this section in the subdirectory and set both elements to "".

    Yes, I did but thanks for responding Joel.

    Regards,
    Jsash
     
  2. Okay, I should probably know this but can't remember.

    I've installed a web application in a subdirectory of my main web app. I've created a brand new web.config file for this sub application. However, when I navigate to the url of the sub application I get a configuration error.

    The configuration is a result of it pointing back to the parent web.config which is entirely different than the web.config for the sub application/directory.

    How do I get the application to recognize the proper directory specific web.config file?

    TIA,
    Jsash
     

Share This Page