How to determine which parent configuration file blocks web.config configuration?

When I open my ASP.NET site in IIS and try to open the .NET Trust Levels, I get the error message:


.NET trust levels An error occurred while performing this operation.

Details:

File Name: \? \ C: \ inetpub \ wwwroot \ myapp \ web.config

Line Number: 445

Error: This configuration section cannot be used on this path. This happens when a section is locked at the parent level. The default lock (overrideModeDefault = "Deny") is either explicitly set by the location tag with overrideMode = "Deny" or the deprecated allowOverride = "false".


I checked a few places, but I did not find anything like locking this parameter. Is there a systematic way to determine where this setting is locked?

I am using IIS 7.5 and .NET 3.5 sp1.

+3
source share
2 answers

I did not understand how to determine exactly which file is blocking any given parameter, but if you select the topmost node in IIS (this should be your computer name) and then open the function delegation function, the status bar will read "Configuration:" localhost " root web.config or something similar.

Here you can change which settings are locked at the child level.

Feature Delegation in IIS

+3
source

IIS, ASP.NET . - , , ( ) -. , . , ASP.NET 2.0, xml- IIS 7, .

, ASP.NET IIS. , - - - .

0

All Articles