Should be simple, but whatever I try returns null:
const string key = \"system.web\";
var sectionTry1 = WebConfigurationManager.GetSection(key);
var sectionTry
I think accessing system.web is slightly different to accessing appSettings.
Try this:
string configPath = "/MyAppRoot";
Configuration config = WebConfigurationManager.OpenWebConfiguration(configPath);
IdentitySection section = (IdentitySection)config.GetSection("system.web/identity");
You need to cast the relevant section of system.web you're trying to access to a particular type.