* PagesConfigurationHandler.cs: Use enum for EnableSessionState.
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / TrustSection.cs
index 5b25e236c3ac398776903c344a48087209c0b242..af6341cb0a2786b47497e4cbebc4e9e953a9af3b 100644 (file)
@@ -29,6 +29,7 @@
 //
 
 using System;
+using System.ComponentModel;
 using System.Configuration;
 
 #if NET_2_0
@@ -44,7 +45,10 @@ namespace System.Web.Configuration {
 
                static TrustSection ()
                {
-                       levelProp = new ConfigurationProperty ("level", typeof (string), "Full", ConfigurationPropertyOptions.IsRequired);
+                       levelProp = new ConfigurationProperty ("level", typeof (string), "Full",
+                                                              TypeDescriptor.GetConverter (typeof (string)),
+                                                              PropertyHelper.NonEmptyStringValidator,
+                                                              ConfigurationPropertyOptions.IsRequired);
                        originUrlProp = new ConfigurationProperty ("originUrl", typeof (string), "");
                        processRequestInApplicationTrustProp = new ConfigurationProperty ("processRequestInApplicationTrust", typeof (bool), true);
                        properties = new ConfigurationPropertyCollection ();