Author: igorz
Date: 2007-09-02 05:41:54 -0400 (Sun, 02 Sep 2007)
New Revision: 85184

Modified:
   trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs
Log:
consider MachineKeyRegistryStorage is not supported in TARGET_J2EE

Modified: 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs    
    2007-09-02 09:31:48 UTC (rev 85183)
+++ 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs    
    2007-09-02 09:41:54 UTC (rev 85184)
@@ -123,10 +123,14 @@
 
                static void AutoGenKeys ()
                {
+#if TARGET_J2EE
+                       {
+#else
                        try {
                                autogenerated = 
MachineKeyRegistryStorage.Retrieve 
(MachineKeyRegistryStorage.KeyType.Validation);
                                autogenerated_decrypt = 
MachineKeyRegistryStorage.Retrieve 
(MachineKeyRegistryStorage.KeyType.Encryption);
                        } catch (Exception) {
+#endif
                                // Fall back to old method
                                autogenerated = new byte [64];
                                RandomNumberGenerator rng = 
RandomNumberGenerator.Create ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to