2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 9 Jul 2009 17:13:34 +0000 (17:13 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 9 Jul 2009 17:13:34 +0000 (17:13 -0000)
* SqliteMembershipProvider.cs:
* UrlAuthorizationModule.cs: use GetSection instead of
OpenWebConfiguration+GetSection.

svn path=/trunk/mcs/; revision=137636

mcs/class/System.Web/System.Web.Security/ChangeLog
mcs/class/System.Web/System.Web.Security/SqliteMembershipProvider.cs
mcs/class/System.Web/System.Web.Security/UrlAuthorizationModule.cs

index 13d2e40d0757c48597c69d9d2810432de963c18b..cf170bd26bf7076172b5994bc6d81e15bd7fba63 100644 (file)
@@ -1,3 +1,9 @@
+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
index c54b70e90664206e64224bc5272c07644689a269..f7be4be34753d4f8bf36e5b1830256d4745cdbd8 100644 (file)
@@ -140,8 +140,7 @@ namespace System.Web.Security
                        }
 
                        // 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))
                        {
index 6972aca37713e7ecde039a823bcc5a27bcf9f3f3..5dbda09026eae124aa915749d4010c58cc1fb9cf 100644 (file)
@@ -61,8 +61,7 @@ namespace System.Web.Security
 
                        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)