If I have an IIS setting configured both in ApplicationHost.config and web.config, what value is going to be applied? Is it an ApplicationHost.config value because it is global to all websites or web.config value because it overrides it? And what happens when I haven't configured it in web.config, should it take this setting from ApplicationHost.config?
The particular setting I have to check is:
system.webServer/security/requestFiltering/requestLimits/maxAllowedContentLength
The reason I'm asking is because I'm getting quite strange results when I try to configure those settings from the C# application. Even if I haven't configured it for the website and I have manually set the value in the ApplicationHost.config I'm still getting a default value from web.config