I’m running Windows Server 2008 and I am trying to setup the following:
- A website running in a .NET 4.0 Integrated Application Pool (working with its own dedicated app pool
- A subdirectory running in a .NET 2.0 App Pool (I created a sub folder, then did convert to application, and put it into its own app pool)
When running the app in the subdirectory, I get a 500 Server Error saying that the SubDirectory doesn’t have permissions to read the web.config of the root site.
I don’t want the subdirectory it to read the root site’s web.config, since it has its own. I assumed since they are in separate app pools, the subdirectory would read its own web.config and not even necessarily be aware of the root site’s web.config.
How can this be done?
web.config is always composed of multiple layers; the “master” in the main .NET directory (under CONFIG), the root web.config, and every layer down – notably including subdirectories within an application.
In short, yes: it needs read access to any parent web.config files.