hi
We can retrieve configuration sections from web.config in the following two ways:
Configuration config = WebConfigurationManager.OpenWebConfiguration("/");
AuthenticationSection authSection = (AuthenticationSection)
config.GetSection(@"system.web/authentication");
OR
AuthenticationSection authSection = (AuthenticationSection)
WebConfigurationManager.GetSection(@"system.web/authentication");
How are the two approaches different ( besides the fact that in the first example we retrieved a configuration section via Configuration object, which represents a configuration file )?
thanx