* SqliteMembershipProvider.cs:
* UrlAuthorizationModule.cs: use GetSection instead of
OpenWebConfiguration+GetSection.
svn path=/trunk/mcs/; revision=137636
+2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * SqliteMembershipProvider.cs:
+ * UrlAuthorizationModule.cs: use GetSection instead of
+ OpenWebConfiguration+GetSection.
+
2009-05-28 Marek Habersack <mhabersack@novell.com>
* FormsAuthenticationModule.cs: if forms authentication login URL
}
// Get encryption and decryption key information from the configuration.
- System.Configuration.Configuration cfg = WebConfigurationManager.OpenWebConfiguration(HostingEnvironment.ApplicationVirtualPath);
- m_MachineKey = (MachineKeySection)cfg.GetSection("system.web/machineKey");
+ m_MachineKey = (MachineKeySection)WebConfigurationManager.GetSection("system.web/machineKey", null);
if (!m_PasswordFormat.Equals(MembershipPasswordFormat.Clear))
{
HttpRequest req = context.Request;
#if NET_2_0
- global::System.Configuration.Configuration cfg = WebConfigurationManager.OpenWebConfiguration (req.Path, null, req.FilePath);
- AuthorizationSection config = (AuthorizationSection) cfg.GetSection ("system.web/authorization");
+ AuthorizationSection config = (AuthorizationSection) WebConfigurationManager.GetSection ("system.web/authorization", req.Path, context);
#else
AuthorizationConfig config = (AuthorizationConfig) context.GetConfig ("system.web/authorization");
if (config == null)