QuickJack/mono — comment on commit 10dbda2cdac97fc028a73ebdfe3a7f40dec9f585
File:  line 0
By QuickJack:

OK, github crippled my source code. Here's another trial:

public void Page_Load(object sender, EventArgs args)

{

Configuration config=WebConfigurationManager.OpenWebConfiguration("~/vdir1");
AuthorizationSection sect=(AuthorizationSection)config.GetSection("system.web/authorization");

PropertyInformation prop=sect.Rules[0].ElementInformation.Properties["users"];
}

Unfortunately, Mono's configuration stack is still missing some functionality. If you examine sect.Rules[0].ElementInformation you will see that the Source and LineNumber property is always null. The IsPresent property is always false. All of these properties can be used to determine if an authorization rule has been read from the expected configuration file or if it has been inherited from a higher level configuration file.

However, implementing these features seems to be a difficult task. I guess that the configuration stack needs a major rework.