Web.Config in subdirectory inheriting configuration from root of Website
Posted on 2009-05-06
I have a DNN webite running in DirectoryA underneath that there is a separate application running in DirectoryA\DirectoryB. They both have web.config files and are defined as unique applications in IIS.
It's been a while since I did any ASP.NET development so I don't recall how to stop the web.config for ApplicationB from inheriting certain configuration keys from applicationA.
ApplicationA is a dotnetnuke application running in the Default Application Pool
ApplicationB is a C# web app running it's own Application Pool (folder name)
I understand what's happening I just don't know how to remedy it.
the first hangup in applicationB is below and it's getting that key from ApplicationA's web.config (DNN)
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The code subdirectory '/owner/App_Code/HTML/' does not exist.
Line 104: -->
Line 105: <codeSubDirectories>
Line 106: <add directoryName="HTML" />
Line 107: </codeSubDirectories>
Line 108: </compilation>